there is no space between last two digits in fourth and sixth test cases, in test cases 1, 2, 3 and 5 there is space
that is because here number is not treated as sequence of digits, but it really should be so
I think the problem is the ambiguous definition of Conway Sequence.
The definition stated in http://rosettacode.org/wiki/Look-and-say_sequence does not treat 25 as a whole starting number.
While in real application say image compression we have to distinguish 0 - 255 in 8 bit color depth.
It will be much better if there is a statement clarify multi-digits value will be treated as a whole.
Hello. I have some problems with my solution in c++. I have error when l=25. Outputs in text scripts provided on site and outputs that generate my program on computer are equal, but output that generate my program on site is wrong. Can you help me?
I think there is something to add to the description ( a more complete example section maybe) because reading it that seems totally illogical to not read every digit of the R number when R>=10 .
And reading the rest of the comment I see that I am far from being the only one to have thought WTF when the expected result finished by 25 when every digit returned was supposed to be between spaces.
bonjour
Jâobtiens 100% lorsque je soumet mon code mais je ne dĂ©bloque pas le trophĂ©e.
Pouvez-vous voir le problĂšme?
Merci dâavance
In C#, the very last test is bugged. To fix this, just submit your code and you should get 100% since the alternative validators that arenât bugged.
I just now created a solution in C#. It passes all tests and validators without problem. You must have a bug in your code.
- danBhentschel
It passes all the other tests and when I do the suite by hand and compare it to the result I send, the logic is perfectly fine but in the expected line thereâs a logic error at the end because it says 2 3 instead of 1 33, but only at the very last line.
Maybe Iâm misunderstanding you. The last two numbers in the expected output of the final test SHOULD be â1 33â correct?
When I look at the test values, I see that the last two numbers of the expected output in fact ARE â1 33â. Are you seeing something different in the actual test values?
- danBhentschel
Yes, Iâm seeing 2 3 as the expected last numbers but the validators work correctly.
Then thereâs some other oddity going on here. What browser are you using? To double-check, you are clicking the âShow testcasesâ button, and then open âR=33 and L=25â and then click âSend to IDEâ. You see the test case in the Custom tab, and if you scroll the right-hand window to the bottom, you DONâT see the same as me:
- danBhentschel
Thanks, had the same problem here with 25 (which is seen as 2 5 in the real algorithm).
I rated this puzzle 1 star as it got me frustrated for no good reason.
Like many others here I was failing on the 25 and 33 inputs and had to check the forums to understand what was going on. Apparently the sequence definition used here is different from the original one, as it doesnât exist anything like âone twenty fiveâ there, but only âone two one fiveâ.
I think it is totally fine to alter the ârulesâ to make the game more interesting or different, but when that happens, first of all it should be clearly stated in the explanation and here it wasnât. Secondly the test cases that highlight that difference should be understandable like one where R=25 and L=2 and one can see the desired output is â1 25â.
After understanding the ârealâ statement of the challenge, I only had to make minor changes to my code (and no changes to the algorithm itself) to finally make it work as intended. I donât think the modifications added anything other than confusion to the basic âlook and sayâ sequence
My output stream
1
1 1
2 1
1 2 1 1
1 1 1 2 2 1
3 1 2 2 1 1
And it goes on, I think I did it right but it seems like the test is broken since I get the error message.
Failure
Found: "1 "
Expected : â1 1â
Edit : I prefer to see every term of the sequence but they only want the last one, found it after re-reading the instructions twice. Now it works fine.
Hi guys!
Could you help me please?
I would like to know if there were some changes made to the test because I donât understand why my 3rd test is not workingâŠIt says R=5 and L=10
This is all the sequence I have: from #1 to #10
Sequence 1: 5
Sequence 2: 5 1
Sequence 3: 1 5 1 1
Sequence 4: 1 1 1 5 2 1
Sequence 5: 3 1 1 5 1 2 1 1
Sequence 6: 1 3 2 1 1 5 1 1 1 2 2 1
Sequence 7: 1 1 1 3 1 2 2 1 1 5 3 1 2 2 1 1
Sequence 8: 3 1 1 3 1 1 2 2 2 1 1 5 1 3 1 1 2 2 2 1
Sequence 9: 1 3 2 1 1 3 2 1 3 2 2 1 1 5 1 1 1 3 2 1 3 2 1 1
Sequence 10: 1 1 1 3 1 2 2 1 1 3 1 2 1 1 1 3 2 2 2 1 1 5 3 1 1 3 1 2 1 1 1 3 1 2 2 1
Sequence 11: 3 1 1 3 1 1 2 2 2 1 1 3 1 1 1 2 3 1 1 3 3 2 2 1 1 5 1 3 2 1 1 3 1 1 1 2 3 1 1 3 1 1 2 2 1 1
From what I see, the L=10 sequence is 1 1 1 3 1 2 2 1 1 3 1 2 1 1 1 3 2 2 2 1 1 5 3 1 1 3 1 2 1 1 1 3 1 2 2 1
and not 3 1 1 3 1 1 2 2 2 1 1 3 1 1 1 2 3 1 1 3 3 2 2 1 1 5 1 3 2 1 1 3 1 1 1 2 3 1 1 3 1 1 2 2 1 1 (apparently thatâs the one that is right)
Could you tell me if Iâm wrong? Iâm losing it.
Thanks a lot!
Your line 2 is already wrong.
It should be 1 5, coming from the first line of 5
Got it?
OH My God!
thanks so much java!
I misplaced the number of occurrences and the value right at the beginning.
Thanks for noticing it.
I was able to solve it finally.
Have a good one guys!
Hi,
Could you please verify why my solution it doesnât get any score? All test cases are passed successfully but when I press âsubmitâ the hourglass keep spinning and just stays like that forever
Thank you!
that was a general issue with the platform. Iâm really sorry about it. If you try again, Iâm sure youâll get a score.
the test case is not good
for r=25 and l=10
i get
3 1 1 3 1 1 2 2 2 1 1 3 1 1 1 2 3 1 1 3 3 2 2 1 1 2 3 1 1 3 1 1 2 2 2 1 1 3 1 1 1 2 3 1 1 3 3 2 2 1 1 5
i check on this website and get the same result => https://www.dcode.fr/suite-conway
the test case is waiting for 3 1 1 3 1 1 2 2 2 1 1 3 1 1 1 2 3 1 1 3 3 2 2 1 1 25
Am i loosing something ?