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.
Hello. I am getting an "Error: at sol" error one of the random tests. All of the other tests pass. My algorithm also gets the expected output without throwing an error in other environments where it fails in this environment... Any ideas? I am not using especially modern syntax.
The last line in the sample tests section has a typo.
It should read:
Test.expect(simulate(p3,[4,8,16]) === 2,"prog(4,8,16) == 2");
whoops. I was modifying the input. :/
I had this problem, but it was apparently because I was modifying the input. If you solve this kata without modifying the input, then you probabaly won't have this problem.
whoops. I was modifying the input, which is a no-no.
I can log the right answers, but when I return them, I get simply "value is not what was expected" without any further information. This occurs for all but the first test.
and the answer is supposedly ['left','left','left']
I am having trouble with the "return a chain of moves to the left" test.
The input is this [[false],[false],[false],[true]], where the miner starts at true and needs to get to 0,0.
Isn't he just stuck in this scenario? "false"s mean walls, do they not?
it was strange. Periodically, I saw what I was supposed to see. At least enough times to help me solve the kata. : ) Thanks, though. Your answer hopefully will help others with the issue.
Yea, I am not sure what the problem was there. Somehow I fixed it. : )
I don't understand how I cannot pass the first test with the input of [ [ 1, 0, 0 ], [ 0, 1, 1 ], [ 1, 1, 0 ] ] and 0 generations. My function returns the cells argument -- [ [ 1, 0, 0 ], [ 0, 1, 1 ], [ 1, 1, 0 ] ], but for some reason it does not pass.
Was this issue ever fixed?
I was literally working on this one for weeks. Great kata.
I think your last test still needs to be changed as well..
I'd add tests to make sure input such as 1.1 and 22.22 and other non-integers returns "Not valid" . : )
Loading more items...