A height balanced binary tree is a binary tree in which the height of the left subtree and right subtree of any node does no…
A height-balanced binary tree is defined as a binary tree in which the height of the left and the right subtree of any node …
Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth (e.g., if you have a tre…
Objective: Given a sorted array with unique elements, Create a binary search tree with minimal height.
Minimum height means w…
Lets assume we have a directed graph like the below image. Now we need to traverse the graph from a starting index.
We can d…
We can have a directed graph like the below image and our task will be to find if their's a path or route between two gi…
In case of dfs we will go as deep as possible in the given tree. In BFS we have explored or processed the nodes at the same …
I am Tapas Mishra and I maintain this tutorial blog. I found difficulties it is very difficult to get all the notes about important topics in one place. So I created this blog and make it public so that others can access this important topics whenever required at free of cost. About Me
Social Plugin