Glossary: Algorithms Beyond the Basics in Go
Amortized
Also written: O(1) amortized
An average cost over many operations. Appending to a slice is occasionally slow when it must grow, but averages O(1) per append.
Glossary: Algorithms Beyond the Basics in Go
Also written: O(1) amortized
An average cost over many operations. Appending to a slice is occasionally slow when it must grow, but averages O(1) per append.