Skip to content

Commit 6b78ef5

Browse files
authored
Remove printing trailing whitespace in the output table
1 parent 78e8593 commit 6b78ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: data_structures/stacks/infix_to_prefix_conversion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def infix_2_postfix(infix: list[str]) -> str:
2727
"-": 1,
2828
} # Priority of each operator
2929

30-
print_width = len(infix) if (len(infix) > 7) else 7
30+
print_width = len(infix)
3131

3232
# Print table header for output
3333
print(

0 commit comments

Comments
 (0)