You are viewing a single comment's thread. Return to all comments →
python
n=10000 jump=0 while(n>0): if x1<x2: x1+=v1 jump+=1 else: x2+=v2 jump-=1 if x1==x2 and jump==0: return 'YES' n-=1 return 'NO'
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
python