Unexpected use of Binary Search

Revision en1, by Virtual_Contestant, 2020-04-28 21:09:23

Hello everyone, hope you are all fine. Talking with reference to this question, how to identify if a particular question can be solved using binary search efficiently? Most of the time binary search doesn't seem to come in my mind while thinking about a problem at all just like this problem. https://codeforces.com/contest/1201/problem/C

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Virtual_Contestant 2020-04-28 21:09:23 372 Initial revision (published)