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.
thanks
You can't reorder the people in the circle (you're missing this part of the setup), so
Why 1.5 is correct answer in first test case (Test.assertSimilar(moneyGame([1,0.5,0.5,0.5,0.5,1,1,1]) , 1.5))?
There are four 1 and four 0.5, so it can be four combinations of 1+0.5, so no one will be eliminated
i've been timing out at 12 sec
How are you choosing when to cross over the two chromosomes? I had this problem too before I changed it to be random across the string's length.
I have the same problem and I really don't understand what exactly may be wrong. Has anyone solved it?
thanks for your answer, very helpful
I think 7 seconds is the max
This is brutal.
Test case my solution takes from 170 to 200 ms. How fast does it must be to solve the excruciatingly long list in Javascript?
In the C# environment the following "internal" error occurs both locally and during submission:
HI, I take population with size 100. After 200 iterations fitness is increased average by 3 times. Usually from 0.05 to 0.15. But it's very small to figure out right answer. Can anyone suggest me where maybe an error?
Thank you
just add 'console.log(list);' to the begining of the function 'list' is what ever variable you use as an argument
var variance = function(list) { console.log(list);
...
Hello,
I have 1 failed test: "Variance for the seventh example set is not correct - Expected: 0.0000, instead got: 800.0000".
But I don't understand where is the error. How can I see which values are used in example 7 ?
Thanks