Domanda di colloquio di Pinterest

A problem that combines binary search with dynamic programming.