Efficiency of using a Python list as a queue
Efficiency of using a Python list as a queue Question: A coworker recently wrote a program in which he used a Python list as a queue. In other words, he used .append(x) when needing to insert items and .pop(0) when needing to remove items. I know that Python has collections.deque and I’m trying to figure …
Total answers: 5