+1 vote
in Data Structures & Algorithms I by (110k points)
In linked list implementation of a queue, where does a new element be inserted?

(a) At the head of link list

(b) At the centre position in the link list

(c) At the tail of the link list

(d) At any position in the linked list

I want to ask this question from Queue using Linked List topic in portion Abstract Data Types of Data Structures & Algorithms I

This question was posed to me in homework.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Right option is (c) At the tail of the link list

The explanation is: Since queue follows FIFO so new element inserted at last.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...