Data Structure

A Data Structure is a storage that is used to store and organized data.

Reverse The Array With Examples

Reverse The Array is a Data Structure problem which already asked in most of the interviews. In this tutorial we will learn about it with some examples in different-different languages. See below. What it means by Reverse the array? You already know about the “Reverse” it means opposite of that thing for which we want …

Reverse The Array With Examples Read More »

Binary Search Tree

In this tutorial we will learn about Binary Search Tree and its operations with some examples. What is Binary Search Tree? BST is node-based binary data structure which has the following properties: Operations in Binary Search Tree Standard BST Problems Some of the standard and basic problems are below which are generally asked in the …

Binary Search Tree Read More »

Binary Search Tree Traversal

In this tutorial we will learn about Binary Search Tree Traversal with examples. We have a Binary Search Tree which is following. Binary Search Tree Traversal Methods There are various methods to traverse the binary search tree. Following are the basic methods used to Traverse the Binary Search Tree. 1. Inorder Traversal Explanation: Recursion is …

Binary Search Tree Traversal Read More »

Creating a Binary Search Tree

In this tutorial we will learn how to Create a Binary Search Tree with examples. The below diagram represents the Binary Search Tree. How to Create Binary Search Tree You can Create A Binary Search Tree using its fundamentals which are below: Implementation The process is implemented Recursively. Which is very simple to use. We …

Creating a Binary Search Tree Read More »

Diameter of a Binary Tree

The Diameter of a Binary Tree or Width of a Binary Tree is the number of nodes on the longest path between two end nodes. The diagram below shows the diameter 9 of the tree the leaves that forms ends of the longest path are in shaded (The longest path is 9). Explanation: 1. The …

Diameter of a Binary Tree Read More »

Height of a Binary Tree

This tutorial explains the Height of the Binary Tree with some examples. In the following example there is a B Tree given, We have to find the Height of The Tree. What is the Height of The Binary Tree? The Height of a Tree Is equal to the largest numbers of edges from the Root …

Height of a Binary Tree Read More »

What is Recursion?

In this tutorial we will learn What is Recursion and how to use it with some examples. Recursion is a widely used phenomenon in computer science used to solve complex problems by breaking them down into simpler ones. It is the process by which a function calls itself directly or indirectly. The corresponding function is …

What is Recursion? Read More »

Scroll to Top