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.
When the initial input is :
I get the following error message :
...which is exactly the same issue described by Lisensolikum above...I believe it is a bug, unless I've missed something in the requirements.
hope this helps, thanks
Fixed. JS version were vulnerable to input modification.
I have the same issue in JavaScript as the one that was reported for Ruby
Random tests Testing for input [14,15,17,16,13,20,20,11,12,16] should work for random tests with small arrays - Expected: '[]', instead got: '[[14], [15], [17], [16, 16], [13], [20, 20], [11], [12]]'
I am modifying the array.. which I guess I should not be doing but... is there something that could be fixed for the JavaScript version of this kata ? (just as the fix that was implemented for Ruby, see comment given by @GiacomoSorbi )
Thanks
This comment is hidden because it contains spoiler information about the solution
Didn't look at your code, but I'll bet on you modifying the input array/list or whatever... ;) (always bad practice, just for the reason you encoutner now!)
Check: found it in your code! ;)
This comment is hidden because it contains spoiler information about the solution