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 the only solution I can find with clean, understandable code. Great work
Thanks :)
This is very cool.
Nice solution!
You can replace Math.floor(x) with ~~(x) if you're looking to save even more space.
The function in the initial code is Japanese(), but the function in the test cases is japanese(), leading to errors unless corrected.
Or you could just use a.localeCompare(b) instead of trying to find the index.Misread that.I'd say the best say is
[...'abcdefghijklmnopqrstuvwxyz']
This is masterful. Well done!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Keen eye! You're absolutely right. This is one of those kata I tend to write on autopilot Xp
See my new fork for something really silly ;)
This is what I started thinking about too, but you save time with just [...'abcdefghijklmnopqrstuvwxyz'] compared to your Array map function, and you don't need to call the spread operator on the Includes string.