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 problem, Ed. I don't know why you're passing one test but it doesn't lend any credibility to your approach; I hope you can re-work your algorithm to modify the input array "in-place"
oh for sure, I do know it's JS... it's just that (while not the case here) I keep hearing about all kinds of IDE's where we get the "it works on my machine" bit all the time, heh
@rowcased The language is JS, Big Boy doesn't exist.
He's probably talking about that.
I don't know Big Boy, so I can only guess that your code only works there because Big Boy doesn't check the mutation of input, which your code does not handle.
you have to modify (mutate) the original array, so there is no point in declaring
var a = []