New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Point72
Coding Question
AI Insights
Quick Summary
Simulate a linear traversal where each step requires choosing between gaining energy or collecting coins.
Movement consumes 1 energy, which must remain non-negative throughout the path.
Goal is to maximize collected coins while managing limited resources dynamically.
What This Tests
Resource management and state tracking during sequential decisions.
Dynamic programming with constrained state spaces.
Understanding how large input values can be safely bounded or capped.
Backward induction or reverse DP formulation.
Common Patterns
Dynamic Programming
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected