Author: admin

Determine if two binary trees are identical or not

Determine if two binary trees are identical or not

“Determine if two binary trees are identical or not” is a basic problem of tree data structure. Here, we are given two binary trees and our task is to write a program to determine if given two binary trees are identical or not. We can solve this problem both recursively and...

Convert Binary Tree to its Mirror Tree

Convert Binary Tree to its Mirror Tree

“Convert Binary Tree to its Mirror Tree” is a basic problem of tree data structure. Here, we are given a binary tree and our task is to write a program to convert given binary tree to its mirror tree. This is a simple problem and can be solved using various...

Check if Binary Tree is Symmetric or Not

Check if Binary Tree is Symmetric or Not

“Check if Binary Tree is Symmetric or Not” is a basic problem based on tree data structure. Here, we are given a binary tree and our task is to write a program to check if given binary tree have symmetric structure or not. A Binary Tree is having symmetric structure...

Delete Binary Tree

Delete Binary Tree

“Delete Binary Tree” is an elementary problem based on tree data structure. Here, we are given a binary tree and our task is to delete given binary tree. We need to delete all the nodes and release memory. If tree needs to be deleted, then, it needs to be traversed...

Top View of Binary Tree

Top View of Binary Tree

“Top View of Binary Tree” is one of the foremost algorithmic problem asked in technical interviews of product-based companies. Here, we are given a binary tree and our task is to write a program to print the top view of given binary tree. Top View of Binary Tree is referred to...

Bottom View of Binary Tree

Bottom View of Binary Tree

“Bottom View of Binary Tree” is one of the foremost algorithmic problem asked in technical interviews of product-based companies. Here, we are given a binary tree and our task is to write a program to print the bottom view of given binary tree. Bottom View of Binary Tree is referred...

Vertical Traversal of Binary Tree

Vertical Traversal of Binary Tree

“Vertical Traversal of Binary Tree” is one of the foremost algorithmic problem based on tree data structure asked in technical interview. Here, we are given a binary tree and our task is to traverse the given binary tree vertically. For vertical order traversal, we need to calculate Horizontal Distance (HD) for...