You are viewing a single comment's thread. Return to all comments →
Using this algorithm and additional tweaks, here is the python 2 code:
if v2 > v1 and x2 > x1: print "NO" elif x1 > x2 and v1>v2: print "NO" elif x1 != x2 and v1 == v2: print "NO" elif (x1-x2)%(v2-v1) == 0: print "YES" else: print "NO"
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 →
Using this algorithm and additional tweaks, here is the python 2 code: