Python/data_structures
amirsoroush 5cb0a000c4
Queue implementation using two Stacks (#8617)
* Queue implementation using two Stacks

* fix typo in queue/queue_on_two_stacks.py

* add 'iterable' to queue_on_two_stacks initializer

* make queue_on_two_stacks.py generic class

* fix ruff-UP007 in queue_on_two_stacks.py

* enhance readability in queue_on_two_stacks.py

* Create queue_by_two_stacks.py

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-04-08 13:41:08 +02:00
..
arrays add prefix sum (#7959) 2022-11-04 20:30:32 +13:00
binary_tree [pre-commit.ci] pre-commit autoupdate (#8294) 2023-03-20 22:16:13 +01:00
disjoint_set Add type annotations (#4814) 2021-10-12 00:34:30 +08:00
hashing Add hashmap implementation (#7967) 2023-03-14 01:31:27 +01:00
heap Replace bandit, flake8, isort, and pyupgrade with ruff (#8178) 2023-03-15 13:58:25 +01:00
linked_list Remove extra len calls in doubly-linked-list's methods (#8600) 2023-04-01 17:53:21 +05:30
queue Queue implementation using two Stacks (#8617) 2023-04-08 13:41:08 +02:00
stacks pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
trie Added Radix Tree in data structures (#6616) 2022-10-31 14:14:33 +01:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00