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.
Awesome kata, Gives you great satisfaction when you actually complete it. Though i didn't realize the number of iterations was optional and my code kept failing (though at one time it did get the right answer on it's first try). Can you make these things stand out a little?
Is it necessary to use the roulette algorithm to choose the chromosomes? As i found picking the top few candidates and crossing between them got me to the answer faster, coupling that with elitism got me an answer to a 35 character string in about 20ms
Also the way the crossover method works bugs me and I found storing each individual as an abject in an array is far more efficient (easier sorting and selecting)
So are we allowed to make such adjustments?
You failed to understand the purpose of this kata.
Thanks! Finally finished this one :)
hmm... I'll doublecheck all the arithmetic operations
Test Failed: Gave title="ab", minorWords="ab". Expected "Ab" but got "ab".
shouldn't ab not be capitalized as it is a minor word? or am I missing something?
I get this error:
Test Failed: Expected: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, instead got: 02, 2, 3, 5, 8, 13, 21, 34, 55, 89
Any idea what could be going wrong? I have tested my interpreter with almost every program I could get my hands on and it has never failed.
This comment is hidden because it contains spoiler information about the solution
TypeError: Object foo has no method 'test'
Missed that somehow. So will this one need to be deleted?
overkill?