34 BST insert Easy Trees

Insert a value into a binary search tree.

35 BST search Easy Trees

Search for a value in a BST. Return the node or None.

36 Height of a binary tree Easy Trees

Find the height of a binary tree.

37 Inorder traversal Easy Trees

Return the inorder traversal of a binary tree as a list.

38 Preorder traversal Easy Trees

Return the preorder traversal of a binary tree as a list.

40 Validate BST Medium Trees

Check if a binary tree is a valid binary search tree.

89 Lowest common ancestor Medium Advanced Trees

Find the LCA of two nodes in a binary tree.

90 Diameter of binary tree Easy Advanced Trees

Find the diameter (longest path between any two nodes).

91 Serialize and deserialize BST Medium Advanced Trees

Serialize a binary tree to a string and reconstruct it.

92 Path sum Easy Advanced Trees

Is there a root-to-leaf path that sums to a target?

94 Symmetric tree Easy Advanced Trees

Check if a binary tree is its own mirror image.

139 Diameter of Binary Tree Easy Trees

Find the diameter (longest path between any two nodes) of a binary tree.