In the worst case while appending an element(inserting at end) array can be full. So a new array is created and n elements are copied from this array to the new array.
I read in literature that worst case time complexity of this operation is O(1), why so? shouldn't it be O(n)?
I did read this question. But did not make any sense to me!