algoritmauzmanı
Sign in
TREN
Subtopic 2.2

Dynamic Arrays

2lessons12 min0done

A dynamic array allocates a bigger block when it fills up and moves its elements there. Python's list and Java's ArrayList are built this way.

This subtopic explains size versus capacity and the cost of growing: a single append can be expensive, but when the capacity doubles, appends stay cheap on average.

Lesson 2.2.1 What is a dynamic array?5 min