Which of the following queues orders elements in the order they were inserted?
Correct answer
LinkedList (as Queue)
Explanation
LinkedList, when used as a queue, maintains insertion order (FIFO).
Update: Admin added a tag on this question
Topics
By Admin · · 30 views