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.
This is a good one!
in python at least, pretty simple. suggest doing some reading up front on Cartesian planes
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Because your code is wrong, printing the input would help to figure out why.
5 test not passed ... how?
This comment is hidden because it contains spoiler information about the solution
Please have a look at this Kotlin translation and approve it. Thanks!
I didn't change anything in the original Kotlin translation created by melli0620, I just updated the description.
You can see that looking at the solutions in Solutions page.
I solved this kata but I ended up with 56 lines of code. I think that's a lot. Can you tell me how much code is needed on average to solve it? If it is much less, I will refactor it.
Hi, first of all thanks, my code has now passed.
Have another Q. Forgive me if I am wrong but I thought breaks were used so that when the correct case is found it breaks out of the switch, therefore saving memory. With my line of thinking, why would it continue to more 1's to n when the other cases don't meet the criteria.
You didn't break each case in the switch. Meaning that when the code meets
n
, your code increment north, south, west, and east. This shouldn't happen, obviously.This comment is hidden because it contains spoiler information about the solution
Start with level 9. Check what the questions are asking you, do research, test it and repeat.
Love it!
Loading more items...