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.
It is more compact, you don't want too long words when solving problems (that don't have long lines of codes tow write)
Am I alone who solved it with two Maps? :))
Its took me so long getting understand whats written here
It is bad practice. IndexOf iterates for each search. But could be creative.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
A foundation in game theory is required to solve this kata
This comment is hidden because it contains spoiler information about the solution
Clever one, but I liked it and hope to use the new knowledge from it one day
It might need some readability but besides that, it's quite efficient.
This solution would be better if it used a named constant instead of the abstract value.
This comment is hidden because it contains spoiler information about the solution
what a perfect sol...
same to same with different words
the joy of coding 😂 feel your pain
what about
"\nbug"
? is it out of the scope of this kata ? some solutions would not detect itAlmost tied your solution for speed (yours is still a split hair faster) :]
Fun kata!
Loading more items...