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
Ok, thank you 😂
This comment is hidden because it contains spoiler information about the solution
Thanks dude.
He is using it to turn a value into string. More info here :)
It replaces all instances of a letter and any number of exclamation marks with just the letter itself. '$1' means the first match enclosed in parentheses, and the (\w) is matched in this case. Hope it helps.
Using indexOf and lastIndexOf is your time-performance problem. Find another way to figure "are there at least two?" for each item.
This comment is hidden because it contains spoiler information about the solution