Vidyalelo
Data Structure · Q6

Arrays in Data Structures

Programming · Data Structure · question 6

Q6

What is the time complexity of inserting an element at the end of an array?

A.
O(1)
Answer
B.
O(n)
C.
O(log 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