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.
You are mean! :)
Some random tests have been added.
Hi.
There was a "performance" test but it was apparently not sufficient for your solution to time out.
I have slightly modified this test case, it should be good now.
Thanks for pointing that out! :)
Hi - I've updated the kata and restricted the random tests to relatively small numbers, which I think may have been the cause of the problem. Hope it works, if not let me know.
Thanks for feedback - there seems to be an issue with very large numbers. I'll take a proper look tomorrow and see if I can fix it.
When removing nodes or appending lists a new list is created, so the original list is not mutated. However, you want to do the least amount of work, so share data wherever possible. If you look at your append function, you might be able to see that you are doing this there already. Is there a way that you could implement something similar for remove?