skpro19's blog

By skpro19, history, 7 years ago, In English

I am getting "Accepted" when I am using C++ lower_bound function -> Submission

I am getting wrong answer using the binary search -> Submission

Can somebody please help?

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it +16 Vote: I do not like it

26367835Accepted, I just changed ll getPos(int index) to ll getPos(ll index)