Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Odd Even Jump
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Find number of good starting indices for odd-even jumps.
Sample Input:
[10,13,12,14,15]
Sample Output:
2
Hints
Hint 1
Use monotonic stack for next jumps
Hint 2
DP from end to start
Hint 3
Track odd and even jump results
Code Editor
Reset
Run
Save
Loading...