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.
No answer after a week, vague issue, kata works fine in C++, closing.
Please, improve your code, and read the note about performance.
this kata deserve to be deleted !
its attempt in js is irrelevant after all optimization it gives run out- its written that it might do this but still you cant know in attemp if the code is right!
didnt like it
this answer does not work for the null string - you can have to check if the value is not null