LeetCode解题报告(106)-- 103. Binary Tree Zigzag Level Order Traversal
Posted onEdited onViews: Valine:
Problem
Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternate between).
For example: Given binary tree [3,9,20,null,null,15,7],