i_copied's blog

By i_copied, history, 4 years ago, In English

Can anyone please suggest where can I get few good contents on Binary Search? I basically suffer with the problem which exactly are the questions where we use it, or how to know if to use it.

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Just search on codeforces with a tag of binary search in the problemset!! You can vary the difficulty and look up for the editorial if you are not able to solve it.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Most of the time that you are asked to find a number as the answer you can use Binary Search and check whether the answer can be smaller or equal to a certain value. I think that the Codeforces problemset can be a good source for Binary Search questions.