Help with Binary Search Problem. 537 Div 2 C

Revision en1, by dakshgautam1, 2019-02-10 03:38:52

I attempted problem C Contest 537 Div 2. I implemented a modified binary search which seems to cover all the edge cases as well. I don't why I get a time limit exceeded on Testcase 5.

It would be great if someone could look at my code and help me out.

My code is 49673257 .

Any kind of help would be deeply appreciated.

Tags #binary search, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dakshgautam1 2019-02-10 03:38:52 484 Initial revision (published)