LeetCode

Zigzag Iterator

Click here for an explanation.