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.
Done!
Haha. Brute force, I like it.
Hm, I solved this problem with Ruby, which isn't exactly known for high performance number crunching, and I did not have to do any performance optimization in order to get it to pass. In fact, I probably wasted a lot of cycles (and memory) by storing the chromosomes as strings instead bitfields.
This comment is hidden because it contains spoiler information about the solution
Okay, I figured it out. The timeouts are intermittent (probably due to high server load). Sometimes it runs, sometimes it times out.
Regarding the second error, it looks like I was passing an Integer as the first argument to
Float.round/2
I have a solution in Elixir that computes the sum of 1 million in about a second, but I'm getting a timeout error. Do I need a more efficient approach?
Additionally, I cannot round the result. I'm getting the following error when calling
Float.round/2
:Is
Float.round/2
not available in Elixir 1.2.4?Nope. They're included.
Yup. Works as expected now. Thanks.
Is this the enterprise version?
Had problems passing the random test cases. It was expecting 9 when 2 numbers matched but Superzahl did not match. Please check.
I have a solution, but when I run it for 100 iterations, I get no testcase correct. When I run it for 1000, I get all but two. When I run it for 2000, I get all but 1 correct. Any more iterations and I get a timeout. Anyone see this behavior (JavaScript)?
Got this as well. Did you ever find a solution
I got this error as well. Reading the description, it says that the number of iterations is an optional parameter and should default to 100. After making that change, the error disappears.
Indeed. That's generally considered to be a bad practice.
Why not?
Loading more items...