Update python library queue -> deque

Queue is designed for synchronous communication between threads, e.g. `get()` is a blocking call. The most appropriate class in Python for both stack and queue would be `deque`
pull/633/head
Pavel 9 months ago committed by GitHub
parent f1bf1b61ec
commit 5785ad98fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -40,7 +40,7 @@ Breadth-first search is commonly implemented using queues.
| --- | --- |
| C++ | [`std::queue`](https://docs.microsoft.com/en-us/cpp/standard-library/queue-class) |
| Java | [`java.util.Queue`](https://docs.oracle.com/javase/10/docs/api/java/util/Queue.html).Use [`java.util.ArrayDeque`](https://docs.oracle.com/javase/10/docs/api/java/util/ArrayDeque.html) |
| Python | [`queue`](https://docs.python.org/3/library/queue.html) |
| Python | [`deque`](https://docs.python.org/3/library/collections.html#collections.deque) |
| JavaScript | N/A |
## Time complexity

Loading…
Cancel
Save