MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / solution.py

File solution.py

Hackerrank_problems/kangaroo/solution.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# Logic:
2# The required result is simply the solution of the equations
3# x1 + y*v1 = x2 + y*v2 (where y is the number of jumps)
4# which is same as checking if (x1-x2)%(v2-v1)==0

Callers

nothing calls this directly

Calls 1

kangarooFunction · 0.70

Tested by

no test coverage detected