Discuss how to apply queue using stack
Discuss how to apply queue using stack?
Expert
A queue can be applied by using two stacks:-
• 1. An element is inserted in queue by pushing it in stack 1 • 2. An element is extracted from queue by popping it from stack 2 • 3. If stack 2 is empty then all elements currently in stack 1 is transferred to stack 2 however in the reverse order • 4. If the stack 2 is not empty just pop value from stack 2.
Explain how can I search for data in the linked list?
Explain the term overflow and underflow?
Define in detail the term Disjoint set.
Illustrates about a linear and non linear data structure?
Write a brief note on the term data structure? And also write down the types of data structures?
What is the data structures employed to carry out recursion?
What do you mean by the term matrix? Describe its uses with an illustration.
Elucidate the terms Run-Time Stack, Binding Time, Recursive case, Base case and Tail Recursion?
Briefly describe the term merge sort algorithm?
Define the term Arrays in brief?
18,76,764
1931218 Asked
3,689
Active Tutors
1445336
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!