算法题应该是lc的二叉树的锯齿形遍历吧,搞一个计数器对2取余就行了https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/