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.
please post your solution here, I'm curious to see how this is happening.
nm
Have you checked that your return value is a number? It seems like Test.assertEquals is used which means that === is used when values are being compared.
I just got it to work. This kata breaks all hash functions so it is not meant to be solved with Hashes. Also, timeout implies your algorithm is not efficient enough.
Same thing with me.
P.S. Now I solved it.
The task description does not mention that time will be limited, it should be mentioned there.
And/or it could mention the maximum amount of nodes in the input.
Same here, my test cases work, but submitting my solution always times out, looks like my code is not even being tested.