How to approach this problem with binary search?

Правка en1, от mdtareque, 2016-07-19 10:03:30

This problem has a tag binary-search and also on a2oj ladder it's given under binary search. Div2 : B http://codeforces.me/contest/492/problem/B

I solved it by plain sorting the array and finding the max difference as given in the editorial.

But, I would like to know how to solve this by binary search? Any hints/pointers please? I am curious to do this with a new approach.

Теги binary-search, a2oj

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский mdtareque 2016-07-19 10:03:30 433 Initial revision (published)