3 ms·
anyone know what the time complexity of the append function is?
by ericmoritz 15y ago
anyone know what the time complexity of the append function is?
- rsc 15y agoIt is amortized O(1). When the append needs to grow the slice, it does so by a multiplicative factor.