Problem 1488 · Medium

Avoid Flood in The City

Dry a full lake with the earliest dry day after its last rain, found by binary search, and fail when no such day exists.

Open the interactive visualisation