please post your solution here, I'm curious to see how this is happening.
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