leetcood学习笔记-501- 二叉搜索树中的众数

题目描述: 方法一: class Solution: def findMode(self, root: TreeNode) -> List[int]: if not root: return [] dic = {} stack = [root] while stack: node
相关文章
相关标签/搜索