Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 281. Zigzag Iterator
Implement an iterator that returns elements from multiple input lists in round-robin (zigzag) order, preserving the order within each list and skipping lists that become exhausted. The challenge is to design next() and hasNext() to alternate across lists efficiently even when lengths differ (e.g., via index/iterator rotation).
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.