What is the space complexity of a linear queue having n elements?

Q & ACategory: Data StructureWhat is the space complexity of a linear queue having n elements?
Admin Staff asked 4 years ago

What is the space complexity of a linear queue having n elements?
a) O(n)
b) O(nlogn)
c) O(logn)
d) O(1)

1 Answers
Admin Staff answered 4 years ago

a) O(n)