# Data Structure

In Data Structure (DS) section, we will share all article related to Data Structure it includes Linked List, Array, Stack, Queue, Algorithm like sorting, searching, divide and conquer, dynamic Programming, Time and space complexity.

### [Solved] Find Lowest Common Ancestor in the Binary Tree

In an earlier tutorial, we have seen what is the ancestor of a node in the binary tree? How to find and print all the ancestors of a given node in a Binary tree? If you...

### Level Order Traversal in Binary Tree | Explained with Code and Example

Traversal is an algorithm for visiting each node in a different fashion. Earlier we have seen see pre-order, in-order and post-order BT traversal. Now we are interested in...

### Program to Find the Height of the Binary Tree using Recursion

What is the Height of Binary Tree (BT)? The height of the Binary Tree is the number of edges from the root node to the deepest leaf node. The height of the tree is the...

### Dynamic Programming and Recursion | Difference, Advantages with Example

Do you want to learn dynamic programming recursion in detail? Recursion and dynamic programming are two important programming concept you should learn if you are preparing...

### 6 Different Types of Recursion in C Explained with Programming Example

After learning the concept of functions and how they are executed, it is a time to learn recursion. In this tutorial, you will learn all the basic of recursion in the data...

### 8 P-NP Problem Interview Questions with Answers

What are the P-NP problem interview questions? Here is a list of simple questions with answer. 1. What is a deterministic and non-deterministic machine? Answer: There are two...

### 6 Basic Different Types of Sorting Algorithms Explained in Detail

Table of Contents What is a Sorting Algorithm? Different Types of Soring Algorithm Insertion Sort Algorithm Selection Sort Algorithm Bubble Sort Algorithm...

### Complete Bubble Sort in C with Explanation | Algorithm, Program and Complexity

Table of Content: What is the Bubble Sort? Bubble Sort Algorithm How does Bubble Sort Work? C Program to Implement Bubble Sort Bubble Sort Complexity...

### Selection Sort in C with Explanation | Algorithm, Program and Time Complexity

There are many sorting algorithms to sort the elements in the array. Some of the simple and widely used algorithms are as follows. Bubble Sort Quick Sort Insertion...

1›

Page 1 of 2