- cross-posted to:
- python@programming.dev
You must log in or register to comment.
- FizzyOrange ( @FizzyOrange@programming.dev ) 4•11 days ago
Zero surprises. It’s the same as in any other language.
- CodeMonkey ( @CodeMonkey@programming.dev ) 3•11 days ago
I was a bit surprised that
deque
is implemented as a linked list and not, for example, a ring buffer. It would mean that index reads would be constant time (though insert and delete at an index would be linear time), the opposite of using a linked list.