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.
JavaScript
@rscharfer Don't modify the passed argument
inp
Which Language?
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");
this is real determination. Great job
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. : )
Fun Kata but IMHO a bit overrated; a
4 kyu
difficulty label would be more suitable.This comment is hidden because it contains spoiler information about the solution
Loading more items...