Missing random tests ;-)
Sample tests relies on the existence of using namespace std; in user code to work.
using namespace std;
Please, approve my Java Translation.
I'm struggling with this "roulette wheel selection" concept. The probability of selection of a given chromossome 'i' is fitness(i) / sum(fitnesses), right? But in this kata, this would result in a really small number.
My algorithm works, but it takes around 10.000 iterations to guarantee the result for every test.
This comment is hidden because it contains spoiler information about the solution
It is common problem in CodeWars. Me as a newbie found it super super Hard, and it demoralize
Absolutely not. A kata is as hard as its easiest solution. Also, kata can't be reranked.
I really this kata due to its difficult and challenge of the solution which could be in a various way. I personally think this kata could upgrade to 6kyu at least.
For those who have some experienced with programming. I mean not for the beginner.
Python expects any falsy result, JS expects only 0, PHP says "return 0", but expects any falsy value. What is this?
Perfect. Thank you!
I've forked it. This should be approvable.
You should have shaped it into a big if.