You are viewing a single comment's thread. Return to all comments →
Nice one, Just change it a bit like
if((x2 > x1 && v2 >= v1) || ((x1-x2) % (v2-v1)) != 0) return 'NO' else return 'YES'
it will check for 0 values or nMod1 issue which always returns 0.
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 →
Nice one, Just change it a bit like
it will check for 0 values or nMod1 issue which always returns 0.