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.
Expected: 552.91, instead got: 552.91 ?
I am not sure how to fix this.
Is it possible to get some testcases written for this. The Kata is completely unclear as to where the array datastructures are coming from given that we're supposed to be manipulating them. It's a nice riddle though.
The random test don't go to two decimal places
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.
My Jasmine tests pass using the same criteria in the tests in a kata but do not pass the kata. I am clueless as to why.
Same here, my test cases work, but submitting my solution always times out, looks like my code is not even being tested.
This comment is hidden because it contains spoiler information about the solution
It would be nice to know from the instructions that the list is expected to be either a list of integers or a list of characters