Python/data_structures
Limbad Yash 80a885c975
Update pop function (#5544)
* Updated Pop function

Added underflow condition

* Update Pop Function

Added condition to check underflow of stack

* Update stack.py

* if not self.stack: raise StackUnderflowError

* Add doctests

* StackUnderflowError

* ..., not ....

* Update stack.py

Co-authored-by: Christian Clauss <cclauss@me.com>
2021-10-23 15:18:09 +02:00
..
binary_tree [mypy] Fix type annotations in data_structures/binary_tree (#5518) 2021-10-22 16:07:05 +02:00
disjoint_set Add type annotations (#4814) 2021-10-12 00:34:30 +08:00
hashing Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
heap Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
linked_list [mypy] fix: fix mypy error in singly_linked_list.py (#5517) 2021-10-22 11:39:18 +08:00
queue [mypy] Add type annotations for linked queue in data structures (#5533) 2021-10-23 11:56:58 +02:00
stacks Update pop function (#5544) 2021-10-23 15:18:09 +02:00
trie [mypy] Fix type annotations for trie.py (#5022) 2021-10-23 01:21:41 +08:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00