You are viewing a single comment's thread. Return to all comments →
Guys usually i'd solve easily but on this question i've got stuck at test case 18
function kangaroo(x1, v1, x2, v2) { let first=x1+v1; let second=x2+v2; for(let a=0;a<1000000;a++){ first+=v1; second+=v2; if(first===second){ console.log(first,second) return 'YES' } ` } return '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 →
Guys usually i'd solve easily but on this question i've got stuck at test case 18
function kangaroo(x1, v1, x2, v2) { let first=x1+v1; let second=x2+v2; for(let a=0;a<1000000;a++){ first+=v1; second+=v2; if(first===second){ console.log(first,second) return 'YES' } ` } return 'NO'
}