Vidyalelo
Data Structure · Q103

Arrays in Data Structures

Programming · Data Structure · question 103

Q103

Which among the following is the worst-case time complexity for appending an element in a variable-length array?

A.
O(n)
Answer
B.
O(1)
C.
O(n2)
D.
O(log n)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board