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.
Ahhhhh...
I didn't notice that reseting of the counter! 😊
Good thinking over there!
But I still think that my solution is more correct, & here is why:
Each time you remove a pair from the array, that might cause a new pair...
That's why I used a 'while' loop.
That said, I don't understand how you passed all the tests...