Same, but I also almost never use a stack or a priority queue. A list works like a stack if I ever need it (haven’t yet), and if I’m reaching for a priority queue, I likely want something more complex like an actual scheduler or something (e.g. a timeout with a priority).
But I have at least used those once or twice. I’ve never used a deque as a deque, only as a queue.
Same, but I also almost never use a stack or a priority queue. A list works like a stack if I ever need it (haven’t yet), and if I’m reaching for a priority queue, I likely want something more complex like an actual scheduler or something (e.g. a timeout with a priority).
But I have at least used those once or twice. I’ve never used a deque as a deque, only as a queue.