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
Chemistry,
1 month ago
English,
3 months ago
Social Sciences,
3 months ago
Computer Science,
10 months ago
Geography,
10 months ago