Update pop function (#5544) · coderjack/algorithms-in-python@80a885c · GitHub
Skip to content

Commit 80a885c

Browse files
limbad-YKcclauss
andauthored
Update pop function (TheAlgorithms#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>
1 parent b72a66b commit 80a885c

1 file changed

Lines changed: 30 additions & 8 deletions

File tree

data_structures/stacks/stack.py

Lines changed: 30 additions & 8 deletions

0 commit comments

Comments
 (0)