Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Although this is a perfect refactor of the code, I don't see it as being the best practice for this excersise, since the job was explicitly to debug the existing code (for practicing loops) and not entirely refactor it to something else.
I tried something similar, but it didn't work, the only difference is that rather than 'arr[i].next' it was 'arr[i]+step', step being equal to step=arr[1]-arr[0], do you know why mine didn't work yet yours did?
for real..
This comment is hidden because it contains spoiler information about the solution
Instead of "0" as the first entry I just put "Sun" as the first entry.
Putting "Hello Ikarus" for the first entry would be entertaining... but both too direct and too indirect.
It is one of those cases where the case statement is not the best solution to the problem present.
Especially since the program is pretty much asking for a fancy array entry look up function.
This comment is hidden because it contains spoiler information about the solution
Thats what I had assumed.