摘要: Given the root of a binary tree, invert the tree, and return its root. Example 1: Input: root = [4,2,7,1,3,6,9] Output: [4,7,2,9,6,3,1] Example 2: Inp 阅读全文
posted @ 2020-01-08 02:37 CNoodle 阅读(239) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). Example 1: Input: root = [1,2,2,3,4,4,3] 阅读全文
posted @ 2020-01-08 01:30 CNoodle 阅读(424) 评论(0) 推荐(0)