Data Structure
[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...
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...
Difference Between Stack and Queue in Data Structure
Stack and Queue are the very important data structures in programming. Whether you are writing a complex program or preparing for placement or getting into the career, you will...
Difference Between Min Heap and Max Heap in Data Structure
In this article, you will learn detail about heap data structure. Detail includes- the difference between min heap and max heap, their usage, and different insertion and deletion...