Hi there,
I need help in understanding the editorial of this Problem
The Editorial written in Japanese mentioned 4 methods to solve the problem which I translated using google translator and I managed to understand the first two methods. The last method mention Binary search, I am interested in a the binary search solution.
Anyone can shed some light on this would be really helpful.