Available question text
Find the minimum number of cells visited to reach bottom-right in an m×n grid when from (i,j) you can jump right to any (i,k) with j<k<=j+grid[i][j] or down to any (k,j) with i<k<=i+grid[i][j]; this is a shortest-path problem with range-based moves that requires efficient enumeration of unvisited cells (m*n up to 1e5) to avoid scanning full ranges.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2617. Minimum Number of Visited Cells in a Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source