InterviewSolution
Saved Bookmarks
| 1. |
In linked list implementation of a queue, front and rear pointers are tracked. Which of these pointers will change during an insertion into a NONEMPTY queue?(a) Only front pointer(b) Only rear pointer(c) Both front and rear pointer(d) No pointer will be changedThis interesting question is from Queue using Linked List topic in portion Abstract Data Types of Data Structures & Algorithms II have been asked this question in semester exam. |
|
Answer» CORRECT answer is (b) Only rear pointer Easiest explanation - Since QUEUE follows FIFO so NEW element inserted at last. |
|