Which of the following is true about linked list implementation of queue?
(a) In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end
(b) In push operation, if new nodes are inserted at the beginning, then in pop operation, nodes must be removed from the beginning
(c) In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from end
(d) In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from beginning
My question is taken from Queue using Linked List in portion Abstract Data Types of Data Structures & Algorithms I
I got this question in class test.