http://codeforces.com/contest/732/problem/D this problem is a good example of binary search. i don't know how to use binary search in it. of course m looking for an explanation. plzz explain it.it will help others also for understanding binary searching..thanks asked 24 Oct '16, 20:05

There are multiple days on which the 'm' exams can be taken, one small observation is that, if it is not possible to pass all exams within some 'k1' days, then obviously, it cannot be done in fewer number of days as well, so, all we need to do is check if it is possible to pass all exams in 'n' days first, if yes, then we try to find a better solution, i.e check if it is possible to pass all exams in 'n/2' days, if yes, then the minimum is somewhere between 0 and n/2 or else, it is between n/2 and n and so on. Now, given 'x', how do we know if its possible to pass all exams within 'x' days ?, there might be multiple days on which it is possible to pass a particular exam, and we consider for each exam, the last possible day which falls within 'x', for example: answered 24 Oct '16, 21:05
good explanation thanks @hemanth_1
(24 Oct '16, 21:19)
