Coding Blocks Trees Sheet - Kartik Bhaiya Trees Sheet
Coding Blocks Trees Sheet - Kartik Bhaiya Trees Sheet
LCA
Lowest common ancestor of a binary tree https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
Lowest common ancestor of a deepest leaves https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/
Kth Ancestor of a Tree Node https://leetcode.com/problems/kth-ancestor-of-a-tree-node/
Validate Trees
Validate Binary Tree Nodes https://leetcode.com/problems/validate-binary-tree-nodes/
Validate Binary Search Tree https://leetcode.com/problems/validate-binary-search-tree/
Check Completeness of a Binary Tree https://leetcode.com/problems/check-completeness-of-a-binary-tree/
Tree Traversals
Smallest Subtree with all the Deepest Nodes https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/
Path In Zigzag Labelled Binary Tree https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/
Maximum Level Sum of a Binary Tree https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/
Sum of Nodes with Even-Valued Grandparent https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/
Frog Position After T Seconds https://leetcode.com/problems/frog-position-after-t-seconds/
Even Odd Tree https://leetcode.com/problems/even-odd-tree/
Binary Tree Level Order Traversal https://leetcode.com/problems/binary-tree-level-order-traversal/
Binary Tree Zigzag Level Order Traversal https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
Binary Tree Level Order Traversal II https://leetcode.com/problems/binary-tree-level-order-traversal-ii/
Binary Tree Right Side View https://leetcode.com/problems/binary-tree-right-side-view/
N-ary Tree Level Order Traversal https://leetcode.com/problems/n-ary-tree-level-order-traversal/
Find Largest Value in Each Tree Row https://leetcode.com/problems/find-largest-value-in-each-tree-row/
Add One Row to Tree https://leetcode.com/problems/add-one-row-to-tree/
Binary Search Tree to Greater Sum Tree https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/
All Elements in Two Binary Search Trees https://leetcode.com/problems/all-elements-in-two-binary-search-trees/
Validate Binary Search Tree https://leetcode.com/problems/validate-binary-search-tree/
Convert BST to Greater Tree https://leetcode.com/problems/convert-bst-to-greater-tree/
Build Trees
All Possible Full Binary Trees https://leetcode.com/problems/all-possible-full-binary-trees/
Construct Binary Search Tree from Preorder Traversal https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/
Recover a Tree From Preorder Traversal https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/
Number Of Ways To Reconstruct A Tree https://leetcode.com/problems/number-of-ways-to-reconstruct-a-tree/
Merge BSTs to Create Single BST https://leetcode.com/problems/merge-bsts-to-create-single-bst/
Unique Binary Search Trees II https://leetcode.com/problems/unique-binary-search-trees-ii/
Convert Sorted List to Binary Search Tree https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/
Nodes Distance
Sum of Distances in Tree https://leetcode.com/problems/sum-of-distances-in-tree/
All Nodes Distance K in Binary Tree https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
Flip Trees
Flip Equivalent Binary Trees https://leetcode.com/problems/flip-equivalent-binary-trees/
Flip Binary Tree To Match Preorder Traversal https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/