题目描述: 方法一: class Solution: def findMode(self, root: TreeNode) -> List[int]: if not root: return [] dic = {} stack = [root] while stack: node = stack.pop() if node.val not in dic: dic[node.val] = 0 dic[node.val] += 1 if node.left: stack.append(node.le…