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.
I had a very similar solution to you. I really like pop because it returns the removed value. It was perfect for this kata. Cheers
This one was really fun!
My final solution.
I DID IT! Holy cow! That was hard... That felt really good hitting the test button for the 100th time and seeing all green. Wow..
Maybe it's just me, but this one is incredibly difficult. It felt more like a 3 kyu to me instead of a 6kyu.
Also, in the example of [29, 13, 16, 5, 8, 9, 1], the function should return 6, 7. Why could it not instead return 5, 15 as that would also be a correct node? Both 6 + 7 and 15 + 1 = 16.