The problem, in one line. Every cell of a square grid has a height, the water level rises one unit a second, and you may cross into a cell once the water reaches its height. Find the earliest second you can get from the top left to the bottom right. LeetCode 778.
The tell. You wait for the highest cell you must cross, and you want that highest cell as low as possible. It is “minimise the maximum” again, with the cost sitting in the cells, so a heap that always lets in the lowest frontier cell solves it.