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.
Here if position of second item is greater then position of first item then we will check, the valucity of first item is greater or not. If valucity is greater of first item only it can be possible to meet them together .
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
Here if position of second item is greater then position of first item then we will check, the valucity of first item is greater or not. If valucity is greater of first item only it can be possible to meet them together .
if(x2>x1 && v1 > v2 && ((x1-x2)%(v1-v2) == 0)) { return "YES"; } else{ return "NO"; }