A circularly linked list is used to represent a queue. A single variable pis
used to access the queue. To which node should p point such that both
the operations enqueue and dequeue can be performed in constant
time?
Answers
Answered by
1
Answer:
Answer should be A. P should point to Last node(rear), so as to perform enqueue in constant time.
Similar questions
Math,
18 days ago
Physics,
18 days ago
Physics,
18 days ago
English,
1 month ago
Social Sciences,
1 month ago
Computer Science,
8 months ago
Geography,
8 months ago