3 ms·
Mhm maybe in C++ a deque is a vector of vectors (in stdlibc it's just a double pointer to T IIRC). In Python it's a doubly-linked list of blocks: https://github
by rocho 10y ago
Mhm maybe in C++ a deque is a vector of vectors (in stdlibc it's just a double pointer to T IIRC). In Python it's a doubly-linked list of blocks:
https://github.com/python/cpython/blob/master/Modules/_collectionsmodule.c#L24 https://github.com/python/cpython/blob/master/Modules/_colle...