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 could not find any similar kata. Will you be kind enough to share the link(s).
Fixed it.
I don't think this is 6kyu.
How is this a 7kyu?
This is awesome!
Good question. For this kata, you can assume that the order would be hole, mouse, cat. Here, the cat will always be behind or 0 away from the mouse. And all three will be collinear.
Here, the second argument in the function (in this case, 2) is the distance between Toba and Limpy, not the distance between Toba and the hole (which would be 4). The correct answer for
survive(2, 2, 1, 1)
would be: TrueThe jump distance of both critters is how much they travel in one jump. for example, with a critter with jump distance of 3, will cover 12 in 4 jumps. Meanwhile, a critter with a jump distance of 2 will cover 12 in 6 jumps. For this kata, the jump distance will always be an integer.
Good suggestion, removed leading minuses.
Thanks for the input, test cases updated.
Thanks for pointing out, issue addressed.