Available question text
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).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 281. Zigzag Iterator
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source