Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ kangaroo
Function
kangaroo
Hackerrank_problems/kangaroo/solution.py:7–8 ·
view source on GitHub ↗
(x1, v1, x2, v2)
Source
from the content-addressed store, hash-verified
5
6
7
def
kangaroo(x1, v1, x2, v2):
8
return
"YES"
if
(v1 > v2) and not (x2 - x1) % (v2 - v1)
else
"NO"
9
10
11
if
__name__ ==
'__main__'
:
Callers
1
solution.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected