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  book-img-for-question
Question Posted: