• + 10 comments

    This was the absolute easiest problem 'Difficult' problem on this site so far. Possible in linear time and you don't need any queues whatsoever.


    Spoiler alert: Integration and global minima.