Question d’entretien chez 1plusX

Algorithmic question that required a monotonic queue for the optimal solution.