Conway Sequence puzzle discussion

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

1 Like

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?

1 Like

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 :slight_smile:
Thank you!

1 Like

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.

1 Like

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 ?