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
it's upnormal code hmm
This comment is hidden because it contains spoiler information about the solution
No you cant do that, it would contain 0 and we dont want that
Nice, so its comparing the Unicode values under the hood.
The string only contains letters from a to z?
how is it faster ?
Simple, pretty cool.
I didn't realize you could compare string letter values without converting to a number. Very good!
At first I was wondering where the "m" came from and then I tried to read the code step by step, that's when I figured. I think I will read code to understand more often now.
Nice one, specialy "string" > "m". And more readable.
Genius! Genius!! Genius!!! // not simply read, but sing!
Nice Kata! I find for-loops very helpful when trying to understand someone's code and thought process.
I went ahead and used
String.protoype.fromCodePoint()
to target the string value.Let me know what you think!
This comment is hidden because it contains spoiler information about the solution
Super awesome, I had no idea you could do that either.
Loading more items...