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.
You will need to optimise your code. For example, what is the big O lookup time for a C# List? Are there faster implementations?
I
Yeah I think you're right actually, that looks better, I shall rework this kata
I struggled with this too. It's extremely unclear in the description how the fitness function works. However using
fitness.call(chromosome.to_i(2))
returns a rational answer when chromosome is a binary string.This comment is hidden because it contains spoiler information about the solution
This returns true for an invalid sudoku board composed entirely of 5s
validSolution(Array.new(9){Array.new(9){5}}) == true
Thanks for your questions