Q5
What is the time complexity of accessing an element in a vector in C++ STL?
A.
O(1)
AnswerB.
O(log n)
C.
O(n)
D.
O(n log n)
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board