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 comment is hidden because it contains spoiler information about the solution
how is it faster ?
The fact that this question even gets asked is an indication that this solution is less than ideal.
Because in the second for loop we dont want to compare the same letter to itself.
Also, there is no need to compare the second letter to the first, third letter to the first and second, and so on, if youve already compared them before ever reaching to that particular letter.
i.e
[a, b, c, d , e ,a]
starting from a, you compare it to everything but itself.
when youre at b, you dont need to compare it to a since you did that already. This continues for each letter. Makes sense?
This comment is hidden because it contains spoiler information about the solution
Yep, it's somehow faster.
This comment is hidden because it contains spoiler information about the solution
well, it's time to update NODE
what is | 0 for ?
Thank you man
Cheating by random methods is not allowed! ;) xD
31337
ain't much but honest work
This comment is hidden because it contains spoiler information about the solution
In my browser the oneliner wins clearly. Did I get sth wrong?
Loading more items...