NeetCode #633LC-778HardAdvanced GraphsNC 150NC 250
← Back to All Problems

#633 · #778 · Swim in Rising Water(水位上升的泳池中游泳)

📌 Problem Statement & Constraints

You are given an n x n grid where grid[i][j] is the elevation. Rain starts falling at time t, and you can swim to adjacent cells only when both elevations are at most t. Return the least t to swim from the top-left to the bottom-right. Constraints: 1 <= n <= 50, 0 <= grid[i][j] < n^2, all elevations are distinct.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!