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.
@benbrnpetit for larger datasets push will be more performant than unshifting. When you add an element to the end of an array, it can be done instantly. When you unshift and array, you must move the entire array forward, which takes more time with larger arrays of data
Added to JS.
Added sample and random test for JS.
There are no tests for JS. It just says "Should test for something" and '1+1 = 2' which is not the purpose of the kata
This comment is hidden because it contains spoiler information about the solution
your solution is quadratic
Is this quadratic?
This comment is hidden because it contains spoiler information about the solution
i did it in the same way, but i passed all the test
Yes, so you can see with what values your code fails and fix your code.
what do you mean? Like console log the input ?
Too few tests in javascript.
Print the input.
This comment is hidden because it contains spoiler information about the solution
I'll mark this as resolved. If you still need help, post a new question with more information.
Loading more items...