Available question text
Given an array and max distance d, you may jump from i to j (|i-j|<=d) only if arr[j] < arr[i] and every element between i and j is also < arr[i]; find the maximum number of indices you can visit starting from any index. This is equivalent to finding the longest path in the DAG of valid strictly-decreasing jumps and is typically solved with DP/DFS + memoization (or monotonic-stack ordering).
Related questions
Continue with questions that share topics or the same question type.
- Jump Game
Coding · Array · Dynamic Programming · Greedy
- Jump Game II
Coding · Array · Dynamic Programming · Greedy
- Jump Game III
Coding
- Jump Game IV
Coding
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 1340. Jump Game V
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source