Skip to content

Commit

Permalink
Update print_width
Browse files Browse the repository at this point in the history
  • Loading branch information
hollowcrust authored Oct 8, 2023
1 parent 945be56 commit d3723b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_structures/stacks/infix_to_prefix_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def infix_2_postfix(infix: str) -> str:
"-": 1,
} # Priority of each operator

print_width = min(len(infix), 7)
print_width = max(len(infix), 7)
# Print table header for output
print(
"Symbol".center(8),
Expand Down

0 comments on commit d3723b9

Please sign in to comment.