Calculate the time complexity of deleting an element from the beginning of a dynamic array.
Show answerHide answer
Correct answer: (D) O(n)
Explanation
Removing the first element of a dynamic array requires shifting the remaining n - 1 elements one place left, so it takes O(n) time.