We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
funckangaroo(x1int32,v1int32,x2int32,v2int32)string{// Write your code here// k1 = x1 + m.v1// k2 = x2 + m.v2// if k1 = k2 then m > 0 and m is an integernumberOfJump:=float32(x2-x1)/float32(v1-v2)ifnumberOfJump>0&&numberOfJump-float32(int32(numberOfJump))==0{return"YES"}return"NO"}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →