Skip to content

Commit ef52d63

Browse files
authored
Fix doctests
1 parent 91a6493 commit ef52d63

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: data_structures/stacks/infix_to_prefix_conversion.py

-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def infix_2_prefix(infix: str) -> str:
9595
+ | + | cb^
9696
a | + | cb^a
9797
| | cb^a+
98-
'+a^bc'
9998
10099
>>> infix_2_prefix('1*((-a)*2+b)')
101100
Symbol | Stack | Postfix
@@ -113,12 +112,10 @@ def infix_2_prefix(infix: str) -> str:
113112
* | * | b2a-*+
114113
1 | * | b2a-*+1
115114
| | b2a-*+1*
116-
'*1+*-a2b'
117115
118116
>>> infix_2_prefix('')
119117
Symbol | Stack | Postfix
120118
----------------------------
121-
''
122119
123120
>>> infix_2_prefix('(()')
124121
Traceback (most recent call last):

0 commit comments

Comments
 (0)