Skip to content

Commit 63b7047

Browse files
committed
pro4 partially completed
1 parent a78737f commit 63b7047

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

unit3/pro4.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
'''
2+
Devise a scheme using a stack to convert an infix expression to a postfix expression. Hint: In a postfix expression operators appear after their operands whereas in an infix expression they appear between their operands. Process the symbols in the prefix expression one-by-one. Output operands immediately, but save the operators in a stack until they are needed. Pay special attention to the precedence of the operators.
3+
4+
NOTE: only works without paranthesis
5+
'''
6+
7+
18
from opus7.stackAsLinkedList import StackAsLinkedList
29

310
class Algorithms(object):

0 commit comments

Comments
 (0)