Blog
1 week ago
CPython Lists, Explained Like You’re the Interpreter
CPython lists are actually static arrays. Understanding their contiguous memory layout explains why append() is cheap but insert() is expensive. Here is the mental model required for interviews.
Source: HackerNoon →