13
you are viewing a single comment's thread
view the rest of the comments
[-] sugar_in_your_tea@sh.itjust.works 1 points 8 months ago

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.

this post was submitted on 18 Mar 2024
13 points (88.2% liked)

Python

6368 readers
15 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS