How Pythons List works so dynamically and efficiently: Amortized Analysis
Aakash Bindal
Follow
Aug 16, 2019 · 5 min read
Suppose you want to create an array but you dont know about its size beforehand, this could be a problem because in computer languages you need to specify the size of an array while initializing it.
But, Python allows you to create a List[Pythonic way of saying array] which gives you freedom from defining size at initialization.