摘要: 题目:https://leetcode cn.com/problems/max area of island/ 阅读全文
posted @ 2020-03-15 21:49 luozx207 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode cn.com/problems/construct binary tree from preorder and inorder traversal/ 优化:不需要用len(left_inorder)来求元素的数量,root_index就是左数元素的数量了。 阅读全文
posted @ 2020-03-15 21:38 luozx207 阅读(143) 评论(0) 推荐(0) 编辑