Back to Questions

Longest Increasing Path in a Matrix

88.5K viewsAsked at Uber
Hard

Question Explain

Given an $m \times n$ integers matrix, find the length of the longest increasing path. You can move up, down, left, or right. Use DFS with memoization (DP).

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Longest Increasing Path in a Matrix - Interview Question