LC: 281. Zigzag Iterator
https://leetcode.com/problems/zigzag-iterator/
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]Last updated