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.
I've no idea how to solve this without the test or attempt timing out :-/
Incredibly satisfying kata once it's accomplished.
You're absolutely right, my bad. I wasn't aware you could reference string elements using square brackets in javascript.
Each chromosome is supposed to be represented as a string right? (i.e. "10101")...but it looks like the fitness function is treating it like an array?
Thanks for the all the feedback guys, I've learned a lot. As JulianNicholls points out, this kata is a duplicate so I'll be unpublishing it shortly.
This comment is hidden because it contains spoiler information about the solution
Can't upvote this comment enough.