Python/data_structures/stacks
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
..
__init__.py Update infix to postfix (#3817) 2020-11-02 00:35:31 +08:00
balanced_parentheses.py Balanced parentheses (#3768) 2020-10-29 10:39:19 +01:00
dijkstras_two_stack_algorithm.py Optimization and fix bug (#2342) 2020-08-21 14:39:03 +08:00
evaluate_postfix_notations.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
infix_to_postfix_conversion.py Update infix to postfix (#3817) 2020-11-02 00:35:31 +08:00
infix_to_prefix_conversion.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
linked_stack.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
next_greater_element.py psf/black changes to next_greater_element.py (#1817) 2020-03-28 07:24:59 +01:00
postfix_evaluation.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
prefix_evaluation.py Add a program to evaluate a string in prefix notation (Polish Notation) (#1675) 2020-01-12 15:00:40 +05:30
stack_using_dll.py actions/checkout@v2 (#1643) 2019-12-26 19:50:12 +08:00
stack.py Update pop function (#5544) 2021-10-23 15:18:09 +02:00
stock_span_problem.py Create codespell.yml (#1698) 2020-01-18 13:24:33 +01:00