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.
I dont like using ternary operators, makes the code difficult to read.
I wish I had thought of this.
Nice one.
Consider the following steps:
5 times to the West and 6 times to the East, if at the tenth step he is at node zero, this should satisfy the condition, correct or not, this hasn´t been explicitly stated by the author of this kata so im unsure about it.
Damn, this is some clever code.
Nice one.
Honestly, felt a bit too easy for a kyu5 challenge.
I thought about doing something like this, but I disliked it because it makes the code cluttered.
Maybe I really like writing "dumbcode".
That space after the parentheses threw me offguard, I may still be able to solve this but wil require something evil.
This comment is hidden because it contains spoiler information about the solution
Im nto complainign btw, i honestly thought this was impressive.
This comment is hidden because it contains spoiler information about the solution
To write code this unnecessarily convoluted requires a special skill indeed.
Clever, but unreadable.
Make sure to mention, within the kata statement, that you require the return to be an INTEGER and nto any other kind fo data type.
If this is a kata intended for beginners (like myself), you need to make even this clear.
I mean, it works.
But do you understand why this works?
Well, now I feel dumb.
Loading more items...