Examveda

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

A. O(n)

B. O(1)

C. O(n2)

D. O(log n)

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures