摘要: 对二叉树进行中序遍历,用maxCount记录最大值。如果存在count==maxCount,压进vector之中。如果count更大,更新vector。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * 阅读全文
posted @ 2020-09-24 15:44 LightAc 阅读(157) 评论(0) 推荐(0) 编辑
返回顶端