> How the heck that helps
If you look at the solution, you'll see how the idea of a derivative helps in that problem.
If you look at the solution, you'll see how the idea of a derivative helps in that problem.
In this case, a simpler hint is: "Do not use derivatives or anything fancy really. Only solutions are constant functions. Proof by contradiction. Use binary search".
One may only wonder what level were the problems given to regular candidates.