InterviewDB Question

Snowy Mountain: Find the Longest Downhill Path in a 2D Elevation Grid

Question Details

Problem You are given an m x n matrix where each cell represents the elevation at that point. A skier can move from a cell to an adjacent cell (up, down, left, right) only if the destination is strictly lower. Find the length of the longest such path…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding