Push is one step, except once.
transcript
Push onto a stack costs one step. Whether it holds ten values or a million. Except once in a while. That one push hides a surprise. Watch what happens when the array is full.
This block has four cells. All four are in use. Push eight. There is no free cell. An array cannot grow in place.
Make a new block, twice as big. Copy the four values across. Then write eight on top.
That push took five steps. But the next three pushes are cheap. Spread out, the average stays near one. That is why push is O of one.
The block doubles every time. So each copy buys many cheap pushes. Growing by one cell would copy every time. Doubling makes copies rarer and rarer.
Rare slow pushes keep push cheap. Most pushes cost one single step. A linked list never copies. Run it in the sandbox. Full breakdown in the lecture.