# 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.

### Q-Learning Introduction, Usage, Disadvantages Explained with Example

What is Q-learning Algorithm? Q-learning is an off-policy algorithm i.e. because Q-learning learns from actions and that are outside the policy. The agent in the Q-learning...

### Tower of Hanoi Puzzle | Example, Number of Moves

The problem of tower of Hanoi was brought in 1883 by M.Claus (Lucas). It consists of disks and three pegs. It is one of the vary popular example in data structure. Tower...

### Binary Tree Tutorials | Interview Questions and Answers

What is Binary Tree? A binary tree is a special type of tree. As its name, every node in the tree will be having either zero node, one node or two child nodes. Any node in the...

### [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...