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.
terrible test cases, as well as a description
This comment is hidden because it contains spoiler information about the solution
Confusing description. And it definitely looks like 6
agreed. could be done in a single loop which would be a better practice
"accepting a native Array method is not working"
Failed on 5th test
additional counter "j" would be even faster )
very complicated solution (memory) for such a simple task
works just for short array. On very large it drops with - "RangeError: Maximum call stack size exceeded"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
interesting solution. But for very big matrix it's a litlle bit slower than through traditional for-like and if. At least in Chrome
.replace is 3 to 15 times faster (Chrome). Just tested.
very very clever ;)
Tests for this cata makes me feel bad.
not bad ;)
Loading more items...