Skip to content

Conversation

laiba-Ashfaq
Copy link

@laiba-Ashfaq laiba-Ashfaq commented Oct 5, 2025

Fixes #6638

This program converts infix expressions to postfix notation using a stack. It includes operator precedence handling and supports basic arithmetic operators.
Input:
String infix = "A+BC-D";
Output:
Infix Expression: A+B
C-D
Postfix Expression: ABC*+D-

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

This program converts infix expressions to postfix notation using a stack. It includes operator precedence handling and supports basic arithmetic operators.
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.74%. Comparing base (ade777a) to head (caf2976).

Additional details and impacted files
@@                 Coverage Diff                 @@
##             update-directory    #6643   +/-   ##
===================================================
  Coverage               75.74%   75.74%           
  Complexity               5766     5766           
===================================================
  Files                     701      701           
  Lines                   19757    19757           
  Branches                 3831     3831           
===================================================
  Hits                    14965    14965           
  Misses                   4214     4214           
  Partials                  578      578           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@laiba-Ashfaq laiba-Ashfaq changed the base branch from master to update-directory October 5, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OTHER]Infix to Postfix Converter using Stack(java)

2 participants