Skip to content

Commit bf0de6d

Browse files
committed
info for pro3 updated
1 parent 70ae410 commit bf0de6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unit3/pro3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
Write a program to convert a postfix expression into an infix expression using a stack. One way to do this is to modify the RPN calculator program given in Program to use a stack of infix expressions. A binary operator should pop two strings from the stack and then push a string which is formed by concatenating the operator and its operands in the correct order. For example, suppose the operator is ``*'' and the two strings popped from the stack are "(b+c)" and "a". Then the result that gets pushed onto the stack is the string "a*(b+c)".
3+
'''
4+
15
from opus7.stackAsLinkedList import StackAsLinkedList
26

37
class Algorithms(object):

0 commit comments

Comments
 (0)