Practice Problem

Swim in Rising Water

Difficulty: Hard

Given an n x n grid of elevations, find the minimum time t at which you can swim from the top-left to the bottom-right corner.