← Quit0 / 0 correct
Data StructuresMedium1 of 110

Why is appending to a dynamic array (Vec, ArrayList, Go slice) O(1) amortized even though it sometimes copies everything?