二叉树
祝如愿~
这个作者很懒,什么都没留下…
展开
-
LeetCode 538 & 1038-Convert BST to Greater Tree(BST,转化为累加树)
LeetCode 538 & 1038-Convert BST to Greater Tree题解原创 2023-01-30 00:23:26 · 81 阅读 · 0 评论 -
LeetCode 230-Kth Smallest Element in a BST(BST,第k大元素)
LeetCode 230-Kth Smallest Element in a BST题解原创 2023-01-29 23:41:13 · 106 阅读 · 0 评论 -
LeetCode 450-Delete Node in a BST(BST,删除)
LeetCode 450-Delete Node in a BST题解原创 2023-01-29 23:39:07 · 76 阅读 · 0 评论 -
LeetCode 701-Insert into a Binary Search Tree(BST,插入)
LeetCode 701-Insert into a Binary Search Tree原创 2023-01-29 23:16:16 · 74 阅读 · 0 评论 -
LeetCode 700-Search in a Binary Search Tree(BST,查找)
LeetCode 700-Search in a Binary Search Tree题解原创 2023-01-29 23:15:53 · 73 阅读 · 0 评论 -
LeetCode 98-Validate Binary Search Tree(BST,合法性)
LeetCode 98-Validate Binary Search Tree题解原创 2023-01-29 23:14:46 · 77 阅读 · 0 评论 -
LeetCode 889-Construct Binary Tree from Preorder and Postorder Traversal(二叉树,前序+后序序列构造二叉树)
LeetCode 889-Construct Binary Tree from Preorder and Postorder Traversal题解原创 2023-01-29 00:47:15 · 62 阅读 · 0 评论 -
LeetCode 106-Construct Binary Tree from Inorder and Postorder Traversal(二叉树,后序+中序序列构造二叉树)
LeetCode 106-Construct Binary Tree from Inorder and Postorder Traversal题解原创 2023-01-29 00:47:23 · 109 阅读 · 0 评论 -
LeetCode 105-Construct Binary Tree from Preorder and Inorder Traversal(二叉树,前序+中序序列构造二叉树)
LeetCode 105-Construct Binary Tree from Preorder and Inorder Traversal题解原创 2023-01-29 00:47:08 · 58 阅读 · 0 评论 -
LeetCode 654-Maximum Binary Tree(二叉树,构造最大二叉树)
LeetCode 654-Maximum Binary Tree题解原创 2023-01-29 00:46:29 · 56 阅读 · 0 评论 -
Leetcode 114-Flatten Binary Tree to Linked List(二叉树,展开成链表)
Leetcode 114-Flatten Binary Tree to Linked List题解原创 2023-01-28 00:57:27 · 53 阅读 · 0 评论 -
LeetCode 226-Invert Binary Tree(二叉树,翻转)
LeetCode 226-Invert Binary Tree题解原创 2023-01-28 00:51:16 · 116 阅读 · 0 评论 -
Leetcode 559-Maximum Depth of N-ary Tree(n叉树,最大深度)
Leetcode 559-Maximum Depth of N-ary Tree题解,三种方法原创 2023-01-28 00:51:36 · 79 阅读 · 0 评论 -
Leetcode 543-Diameter of Binary Tree(二叉树,直径)
Leetcode 543-Diameter of Binary Tree题解原创 2023-01-28 00:36:45 · 53 阅读 · 0 评论 -
LeetCode 104 Maximum Depth of Binary Tree(二叉树,最大深度)
LeetCode 104 Maximum Depth of Binary Tree题解,三种方法原创 2023-01-28 00:32:11 · 69 阅读 · 0 评论 -
LeetCode 116&117-Populating Next Right Pointers in Each Node(二叉树,层序遍历)
LeetCode 116&117 Populating Next Right Pointers in Each Node题解原创 2023-01-28 00:27:17 · 64 阅读 · 0 评论 -
LeetCode 145-Binary Tree Postorder Traversal(二叉树,后序遍历的迭代写法)
LeetCode 145-Binary Tree Postorder Traversal题解原创 2023-01-28 00:25:04 · 51 阅读 · 0 评论 -
LeetCode 94-Binary Tree Inorder Traversal(二叉树,中序遍历的迭代)
LeetCode 94-Binary Tree Inorder Traversal题解原创 2023-01-28 00:22:01 · 60 阅读 · 0 评论 -
Leetcode 144-Binary Tree Preorder Traversal(二叉树,前序遍历的迭代写法)
Leetcode 144-Binary Tree Preorder Traversal题解原创 2023-01-28 00:15:53 · 55 阅读 · 0 评论