首页 > TAG信息列表 > Leetcode103
LeetCode103 二叉树的锯齿形层序遍历
LeetCode103 二叉树的锯齿形层序遍历 使用两个栈进行模拟 + bfs # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class S