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.
Approved by someone
C Translation
The expected sorting isn't correct:
[[3, 4, 5], [5, 12, 13], [11, 60, 61], [16, 63, 65], [30, 40, 50], [40, 75, 85], [60, 63, 87], [60, 80, 100], [75, 100, 125]] should equal [[3, 4, 5], [5, 12, 13], [11, 60, 61], [60, 63, 87], [16, 63, 65], [60, 80, 100], [40, 75, 85], [75, 100, 125], [30, 40, 50]]
check here: https://www.codewars.com/kata/search/my-languages?q=Pythagorean&order_by=sort_date%20desc
I could not find any similar kata. Will you be kind enough to share the link(s).
Fixed it.
I'm pretty sure this is a duplicate (probably a g964 or raulbc kata)
Random Tests (apparently) always expect
[]
I don't think this is 6kyu.
How is this a 7kyu?
This is awesome!
return the result, not print
This comment is hidden because it contains spoiler information about the solution
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.
Loading more items...