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
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.
Step by Step Solution
3.33 Rating (150 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
