Available question text
Count the number of distinct ways to go from the top-left to the bottom-right of a grid under given movement constraints (e.g., obstacles or variable step lengths per cell), returning the result modulo 1e9+7; the challenge is to handle large grids and exponential branching by using optimized DP/graph techniques (prefix sums, memoization, or DAG reasoning) to avoid naive O(n^3) work.
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 2912. Number of Ways to Reach Destination in the Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source