Please read the new rule regarding the restriction on the use of AI tools. ×

Binary search problem.

Revision en1, by zephyr_23, 2018-05-17 11:45:04

I am trying to solve this binary search problem (https://www.codechef.com/problems/FAKEBS) on codechef.

I am getting on W.A on 3 tasks out of 12 and those are small tasks. I think I am missing some edge cases. Can someone please help ?

Code :- https://ideone.com/VnwXtb

Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English zephyr_23 2018-05-17 11:46:06 3 Tiny change: 'm getting on W.A on 3 ' -> 'm getting W.A on 3 '
en1 English zephyr_23 2018-05-17 11:45:04 308 Initial revision (published)