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.
This kata needs serious work.
Java
Now this is a high quality, well-written kata! It was fun to solve and the method scaffolding is appreciated.
Not having any previous genetic algorithm experience, one suggestion I have is to clarify the procedure of forming a new population.
At first it was unclear to me where the selected chromosomes had to go. Was the new population the old one with the two chromosomes replaced? Only after reading an article on the subject did I figure out that growing a new population is a separate concept from the evolution cycles. (Or at least I think it is, since my solution was accepted.)
Something fishy is going on with the test cases on submit:
So I made a single change in my code, I now return 0 on non-match to see what it reports:
What is going on here?!
Are the test strings pseudo randomly generated with the hash of my code as the seed?