Data Structure

algorithm

Tower of Hanoi Puzzle | Example, Number of Moves

Tower of Hanoi puzzle in data structure explained with algorithm and Python program. Minimum number of disk moves.

Binary Tree

Binary Tree Tutorials | Interview Questions and Answers

What is a binary tree? How to prepare binary tree interview questions for product-based companies like Amazon?

Binary Tree

[Solved] Find Lowest Common Ancestor in the Binary Tree

How to find and print the lowest common ancestor in the binary tree? Algorithm, complexity, example and program explained in Python, C/C++ and Java code.

algorithm

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

Program for level order traversal in binary tree solved in Python, C/C++ and Java. Explained with example and complexity.

algorithm

Program to Find the Height of the Binary Tree using Recursion

How to write a program to find the height of the binary tree using recursion? Solved in Python, C/C++ and Java code.

cpp

Dynamic Programming and Recursion | Difference, Advantages with Example

[Explained with Example] What is dynamic programming recursion? Difference between DP and recursion. Advantages and disadvantages.

cpp

6 Different Types of Recursion in C Explained with Programming Example

What are the different types of recursion in C language? What is direct and indirect recursion in data structure? Explain with program example.

Data Structure

8 P-NP Problem Interview Questions with Answers

What are the P-NP Problem Interview Questions with Answer? What are a deterministic machine, NP-Complete, and NP-hard problem?

sorting

6 Basic Different Types of Sorting Algorithms Explained in Detail

What are the different types of sorting algorithms? How are sorting algorithms categorized based on the performance in the data structure?