Algorithms

### [LeetCode 987] Vertical Order Traversal of a Binary Tree

https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/ Given the root of a binary tree, calculate the vertical order traversal of the binary tree. ...
Algorithms

### [LeetCode 971] Flip Binary Tree to Match Preorder Traversal

https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/ You are given the root of a binary tree with n nodes, where each node is ...
Algorithms

### [LeetCode 968] Binary Tree Cameras

https://leetcode.com/problems/binary-tree-cameras/ Given a binary tree, we install cameras on the nodes of the ...
Algorithms

### [LeetCode 1028] Recover a Tree From Preorder Traversal

We run a preorder depth-first search (DFS) on the root of a binary tree. At each node ...
Algorithms

### [LeetCode 1600] Throne Inheritance

A kingdom consists of a king, his children, his grandchildren, and so on. ...
Algorithms

### [LeetCode 998] Maximum Binary Tree II

https://leetcode.com/problems/maximum-binary-tree-ii/ We are given the root node of a maximum tree: a tree where every node has ...
Algorithms

### [LeetCode 145] Binary Tree Postorder Traversal

Given the root of a binary tree, return the postorder traversal of its nodes’ values. Example 1: ...
Algorithms

### [LeetCode 105] Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder traversal of a tree, construct the binary tree. Note:You ...
Algorithms

### [LeetCode 1305] All Elements in Two Binary Search Trees

Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. ...
Algorithms

### [LeetCode 236] Lowest Common Ancestor of a Binary Tree

Given a binary tree, find the lowest common ancestor (LCA) of two given ...