Thursday, 26 January 2017

AGGRCOW - Aggressive cows SOLUTION

AGGRCOW - Aggressive cows is a good question based on Binary Search! (It took me an hour to figure out, how to crack this nut using binary search :P ) My solution's complexity is O(n logn). If you haven't done a lot of problems based on binary search, then this problem will make you learn something good! Now let us talk about the question. In the problem statement it is given that N...