Binary Tree Problems

Master binary tree problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 118 problems in this category.

Total Problems: 118
Easy: 35
Medium: 74
Hard: 9
Showing 50 of 118 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
144

Binary Tree Preorder Traversal

Easy
94

Binary Tree Inorder Traversal

Easy
226

Invert Binary Tree

Easy
236

Lowest Common Ancestor of a Binary Tree

Medium
145

Binary Tree Postorder Traversal

Easy
102

Binary Tree Level Order Traversal

Medium
98

Validate Binary Search Tree

Medium
110

Balanced Binary Tree

Easy
543

Diameter of Binary Tree

Easy
199

Binary Tree Right Side View

Medium
104

Maximum Depth of Binary Tree

Easy
124

Binary Tree Maximum Path Sum

Hard
1029

Vertical Order Traversal of a Binary Tree

Hard
222

Count Complete Tree Nodes

Easy
235

Lowest Common Ancestor of a Binary Search Tree

Medium
108

Convert Sorted Array to Binary Search Tree

Easy
450

Delete Node in a BST

Medium
105

Construct Binary Tree from Preorder and Inorder Traversal

Medium
114

Flatten Binary Tree to Linked List

Medium
653

Two Sum IV - Input is a BST

Easy
106

Construct Binary Tree from Inorder and Postorder Traversal

Medium
297

Serialize and Deserialize Binary Tree

Hard
572

Subtree of Another Tree

Easy
230

Kth Smallest Element in a BST

Medium
784

Insert into a Binary Search Tree

Medium
103

Binary Tree Zigzag Level Order Traversal

Medium
129

Sum Root to Leaf Numbers

Medium
101

Symmetric Tree

Easy
617

Merge Two Binary Trees

Easy
111

Minimum Depth of Binary Tree

Easy
96

Unique Binary Search Trees

Medium
1285

Balance a Binary Search Tree

Medium
893

All Nodes Distance K in Binary Tree

Medium
116

Populating Next Right Pointers in Each Node

Medium
99

Recover Binary Search Tree

Medium
783

Search in a Binary Search Tree

Easy
107

Binary Tree Level Order Traversal II

Medium
975

Range Sum of BST

Easy
530

Minimum Absolute Difference in BST

Easy
173

Binary Search Tree Iterator

Medium
513

Find Bottom Left Tree Value

Medium
1544

Count Good Nodes in Binary Tree

Medium
1035

Cousins in Binary Tree

Easy
109

Convert Sorted List to Binary Search Tree

Medium
789

Kth Largest Element in a Stream

Easy
95

Unique Binary Search Trees II

Medium
1021

Distribute Coins in Binary Tree

Medium
2558

Minimum Number of Operations to Sort a Binary Tree by Level

Medium
655

Print Binary Tree

Medium
1050

Construct Binary Search Tree from Preorder Traversal

Medium
Loading more problems...

Binary Tree LeetCode Problems List

Related LeetCode Topics

Binary Tree LeetCode Problems - Interview Coder