Karthick Manoharan

55%
Flag icon
Appending an item to an array is usually an O(1) time operation, but a single doubling append is an O(n) time operation since we have to copy all n items from our array.
The Intuitive Guide to Data Structures and Algorithms
Rate this book
Clear rating
Open Preview