Loading tutorials
i lives at a fixed offset from the start. That layout makes reads fast. It also makes changes in the middle costly, because there are no gaps to use.3 min readDynamicArray class with its size, capacity, and _resize method. Here we explain why a single append can cost O(n) while a long run of appends averages O(1) each.2 min read