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.
Write down a brief note on the term recursive algorithm?
Explain about the direct call to ISR by an interrupting source.
Explain the way of searching for data in a linked list.
Elucidate any two merits using Single linked list over doubly linked list and vice-versa?
Explain when AVL tree property is violated and describe how to solve it?
Explain about the priority queues.
Describe the term binary tree? Describe its some uses.
Which one data structures used to perform recursion?
Briefly describe the term Tree database. Elucidate its common uses?
Briefly describe the term B+ tree? Elucidate its uses?
18,76,764
1952006 Asked
3,689
Active Tutors
1435234
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!