Help needed in Binary search problem
Difference between en1 and en2, changed 125 character(s)
ques: https://www.hackerearth.com/practice/algorithms/searching/binary-search/practice-problems/algorithm/simple-game-17/↵

can anyone tell me why java code is not working,↵
but same logic in c++ is getting accepted↵

c++ :↵
https://www.hackerearth.com/submission/16444630/↵



java:↵
https://www.hackerearth.com/submission/16444692/

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English raks8877 2018-04-20 11:35:42 125
en1 English raks8877 2018-04-20 11:34:51 249 Initial revision (published)