Search
⌘K
Get Premium
Leetcode 3522. Calculate Score After Performing Instructions
Simulate execution of an instruction list starting at index 0 where "add" increases the score by values[i] and advances to i+1, while "jump" moves to i+values[i]; stop when you go out of bounds or would revisit an instruction, and return the accumulated score.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.