Which of the following is true about linked list implementation of stack

By Rebecca
1 Min Read

Which of the following is true about linked list implementation of stack?

(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

Answer:

(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

Which of the following is true about linked list implementation of stack

Read more: Load cell is used for the measurement of

Posted by Rebecca
Follow:
Rebecca is an Independent content writer for breldigital, She writes content on any given topic. She loves to write a case study article or reviews on a brand, Be it any topic, she nails it