摘要: 问题: 给定一棵二叉树,对所有节点为root的子树,若存在重复的子树。将该节点加入res。 Example 1: Input: root = [1,2,3,4,null,2,4,null,null,4] Output: [[2,4],[4]] Example 2: Input: root = [2, 阅读全文
posted @ 2020-10-18 16:29 habibah_chang 阅读(97) 评论(0) 推荐(0) 编辑