Question: If a stack is implemented using an array, what is the time complexity of resizing the array when it is full?
Options:
Correct Answer: O(n)
Solution:
Resizing the array involves creating a new array and copying all elements, which takes O(n) time.