Skip to content

Commit 6d4cbbe

Browse files
author
IanDoarn
committed
stack.py now passes unittests. added missing parentheses in conditional in method __precedence()
Signed-off-by: IanDoarn <[email protected]>
1 parent 29cf73f commit 6d4cbbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pygorithm/data_structures/stack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def infix_to_postfix(self):
116116
function to generate postfix expression from infix expression
117117
"""
118118
postfix = []
119+
119120
for i in range(len(self.expression)):
120121
if self._is_operand(self.expression[i]):
121122
postfix.append(self.expression[i])

0 commit comments

Comments
 (0)