Question: What is the time complexity of appending an element to the end of a dynamic array?
Options:
Correct Answer: O(n)
Solution:
Appending an element to a dynamic array can take O(n) time in the worst case when resizing is needed.