Find the longest constrained path in a grid of positive integers.
Unlock detailed company stats for this questionUpgrade
Given an m x n grid of positive integers, you can start from any cell and move up, down, left or right, without revisiting cells. Moving from A to B requires grid[B] <= grid[A]; moving from B to C requires grid[C] <= grid[B] or grid[C] <= grid[A]. Find the longest path.
Format · Hard DSA round.
Community answers
No answers contributed by the community yet.


