0281. Zigzag Iterator
Description
**Input:** v1 = [1,2], v2 = [3,4,5,6]
**Output:** [1,3,2,4,5,6]
**Explanation:** By calling next repeatedly until hasNext returns false, the order of elements returned by next should be: [1,3,2,4,5,6].**Input:** v1 = [1], v2 = []
**Output:** [1]**Input:** v1 = [], v2 = [1]
**Output:** [1]ac
Last updated