def next(self):
        len, iter = self.q.popleft()
        if len > 1:
            self.q.append((len-1, iter))
        return next(iter)
:rtype: int
dataset/ETHPy150Open kamyu104/LeetCode/Python/zigzag-iterator.py/ZigzagIterator.next