Difference between Stack and Heap ?
Answer : Stack has very fast to access...
What is Queue in Data Structure ?
Answer : A queue is a container of objects (a linear collection) that are inserted...
What is Stack in Data Structure ?
Answer : A stack is a container of objects that are performed...
Write a function to Delete a node from Doubly Linked List ?
Answer : In a single linked list, every node has link to its next node in the sequence...
What is N Queen Problem ?
Answer : Let us discuss N Queen problem that can be solved using Backtracking...
How to find Second largest element in BST ?
Answer : In an N-ary tree, the second largest value in the given tree to find and return the node...
Write a program to reverse a string using stack data structure ?
Answer : Given a string, reverse it using stack...
How to remove duplicates from a sorted linked list ?
Answer : To write a removeDuplicates() function which takes a list sorted...
Detect loop in a linked list ?
Answer : There are two ways to detect loop in linked list...
Which of the following has the quickest average time complexity ?
Answer : B. Radix
The time required to insert in the Queue is ?
The time required to insert in the Queue is ?
In regards to time complexity which will perform better ω(n4) or O(n3) ?
Answer : A. ω(n4)
What is Data Structure ?
Answer : Data structures are used to store data in a computer in an organized form...
Print pyramid triangle in C++
Answer : To print pyramid triangle in C++, we have use two for loop...
C++ Inheritance
Answer : Inheritance is one of the key features of Object-oriented programming...
Dangling Pointer ?
Answer : A dangling pointer is pointing to a memory location...
Finding all substrings of a given number that are divisible by 11
Answer : Query(l, r) : find if the sub-string between the indices l and r....