摘要: 105. Construct Binary Tree from Preorder and Inorder Traversal https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal 阅读全文
posted @ 2018-11-06 15:16 KeepAC 阅读(112) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/binary-tree-pruning/description/ 一颗树中有0和1的节点,要求删除所有可以被删除的0节点,直接看下图就明白了。 分析: 如果是叶子节点为0,那直接删除, 删除后 如果新的叶子节点 也是0 继续删除。。。 一开 阅读全文
posted @ 2018-11-06 15:06 KeepAC 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 241. https://leetcode.com/problems/different-ways-to-add-parentheses/description/ 282. https://leetcode.com/problems/expression-add-operators/descript 阅读全文
posted @ 2018-11-06 04:58 KeepAC 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1. https://leetcode.com/problems/basic-calculator/description/ 2. https://leetcode.com/problems/basic-calculator-ii/description/ 3. https://leetcode.c 阅读全文
posted @ 2018-11-06 04:01 KeepAC 阅读(106) 评论(0) 推荐(0) 编辑