What will be the time complexity (A or B) for the usual operations on a Queue, if we will implement the queue using a linked list? Briefly justify your answer.

icon
Related questions
Question

What will be the time complexity (A or B) for the usual operations on a Queue, if we will implement the queue using a linked list? Briefly justify your answer.

A
B
Access
O(1)
Access
O(1)
Insert
O(1)
Insert
O(1)
Delete
O(n)
Delete
O(1)
Search
O(n)
Search
O(n)
Transcribed Image Text:A B Access O(1) Access O(1) Insert O(1) Insert O(1) Delete O(n) Delete O(1) Search O(n) Search O(n)
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer