Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3354. Make Array Elements Equal to Zero
Count how many choices of a starting index at a zero and an initial left/right direction yield a deterministic walk—where stepping on a positive decrements it by 1 and flips direction, stepping on a zero continues in the same direction, and the process stops when you exit the array—that results in all array elements becoming zero. The core task is to simulate or reason about this walk for each zero position/direction under the given movement/reversal rules (n ≤ 100).
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.