You are viewing a single comment's thread. Return to all comments →
yes you are right: my program gives for this NO which is not correct. I do nt know then how it passed all cases!
if(x1==x2 && v1==v2) { Ans="YES"; return Ans; }
well adding this will cover that case too. and this time as well I passed all test cases! https://www.hackerrank.com/challenges/kangaroo/submissions/code/61681975
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 →
yes you are right: my program gives for this NO which is not correct. I do nt know then how it passed all cases!
well adding this will cover that case too. and this time as well I passed all test cases! https://www.hackerrank.com/challenges/kangaroo/submissions/code/61681975