Which of the below is true about stack implementation using a linked list? A. In a push
Question:
Which of the below is true about stack implementation using a linked list?
A. In a push operation, if new nodes are inserted at the beginning of the linked list, then in pop operation, nodes must be deleted from the end.
B. In a push operation, if new nodes are inserted at the end of the linked list, then in pop operation, nodes must be deleted from the beginning.
C. Both of the above are true.
D. None of the above is true.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Data Structures Using C A Practical Approach For Beginners
ISBN: 9781000470741
1st Edition
Authors: Amol M Jagtap, Ajit S Mali
Question Posted: