上一页 1 2 3 4 5 6 7 8 9 10 ··· 28 下一页
摘要: 链接:https://leetcode-cn.com/problems/balanced-binary-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; 阅读全文
posted @ 2020-07-25 11:39 景云ⁿ 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/convert-sorted-list-to-binary-search-tree/ 代码 /** * Definition for singly-linked list. * struct ListNode { * int v 阅读全文
posted @ 2020-07-25 11:34 景云ⁿ 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int 阅读全文
posted @ 2020-07-25 11:21 景云ⁿ 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * 阅读全文
posted @ 2020-07-24 20:50 景云ⁿ 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ 代码/** Definition for a binary tree node. struct TreeNo 阅读全文
posted @ 2020-07-24 20:35 景云ⁿ 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ 代码 /** * Definition for a binary tree node. * struct Tr 阅读全文
posted @ 2020-07-24 11:04 景云ⁿ 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNod 阅读全文
posted @ 2020-07-19 16:42 景云ⁿ 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int va 阅读全文
posted @ 2020-07-19 16:37 景云ⁿ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/binary-tree-level-order-traversal/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * Tr 阅读全文
posted @ 2020-07-19 16:25 景云ⁿ 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/symmetric-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * Tre 阅读全文
posted @ 2020-07-19 15:50 景云ⁿ 阅读(93) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 28 下一页