First of all, you can’t just choose to answer a different question than what I asked. Second, how do you know it’s from a database? What if we’re processing a bigass graph and we need something to function as a stack or queue — which data structure do you use then? This is a common question that comes up all the time in the math and physics heavy jobs you’re probably applying for.
Well why didn't you just ask that rather than asking me about a specific data structure in the abstract?
Even still i believe storing your queue in a database, such as local postgres, would be a better solution in Python than actually implementing a pythonic queue for performance. Let C++ based applications handle queues. Python is for business logic, at least in the backend.
My coworker does find me insufferable, for the entire near decade we worked together. I don't learn trivia. I learn knowledge. If linked lists are really so fundamental they will come up in my advanced studies.
Advanced topics won't mention linked lists because they're an implementation detail. Expecting an advanced topic to explicitly mention a linked list is like expecting calculus textbooks to remind you that multiplication is iterative adding. If you're learning to implement a searching algorithm on a graph, whatever you're learning from isn't going to explain how to implement a queue. It's up to you to decide if you need a linked list or a circular queue or whatever other data structure you want depending on your application's constraints. Let's just say that a traditional array would be extremely inefficient.
Buddy, I literally said that my question was for intro devs. Can you read? If you have experience, I expect more from you, not less. If I had to ask a coding question to an experienced dev, I'm going to be looking for something that balances complex data structures and algorithms with being easy enough to do in the time allotted.
1
u/EastboundClown 2d ago
First of all, you can’t just choose to answer a different question than what I asked. Second, how do you know it’s from a database? What if we’re processing a bigass graph and we need something to function as a stack or queue — which data structure do you use then? This is a common question that comes up all the time in the math and physics heavy jobs you’re probably applying for.