Level order traversal

Read more →

Reverse level order traversal

Read more →

Height of a tree

Read more →

Diameter of a tree

Read more →

Mirror of a tree

Read more →

Inorder traversal of a tree

Read more →

Preorder traversal of a tree

Read more →

Postorder traversal of a tree

Read more →

Right view of a tree

Read more →

Left view of a tree

Read more →

Top view of a tree

Read more →

Bottom view of a tree

Read more →

Zig-zag traversal of a binary tree

Read more →

Check if a tree is balanced

Read more →

Diagonal traversal of a binary tree

Read more →

Boundary traversal of a binary tree

Read more →

Construct binary tree from string with bracket representation

Read more →

Convert binary tree into doubly linked list

Read more →

Convert binary tree into sum tree

Read more →

Construct binary tree from inorder and preorder traversal

Read more →

Find minimum swaps required to convert a binary tree into BST

Read more →

Check if binary tree is sum tree

Read more →

Check if all leaf nodes are at same level

Read more →

Check if a binary tree contains duplicate subtrees of size 2 or more

Read more →

Check if 2 trees are mirror

Read more →

Sum of nodes on the longest path from root to leaf node

Read more →

Check if given graph is tree

Read more →

Find largest subtree sum in a tree

Read more →

Maximum sum of nodes in binary tree such that no two are adjacent

Read more →

Print all K sum paths in a binary tree

Read more →

Find LCA in a binary tree

Read more →

Find distance between 2 nodes in a binary tree

Read more →

Kth ancestor of node in a binary tree

Read more →

Find all duplicate subtrees in a binary tree

Read more →

Tree isomorphism

Read more →