Skip to content

Add Valid Parentheses Checker algorithm#511

Closed
Jccqt wants to merge 2 commits into
TheAlgorithms:masterfrom
Jccqt:master
Closed

Add Valid Parentheses Checker algorithm#511
Jccqt wants to merge 2 commits into
TheAlgorithms:masterfrom
Jccqt:master

Conversation

@Jccqt
Copy link
Copy Markdown
Contributor

@Jccqt Jccqt commented Jul 11, 2025

Summary of the Change:

This pull request introduces the Valid Parentheses Checker, which checks whether the given parentheses are valid. A valid parentheses should have opening braces and closing braces.

  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Comments in areas I changed are up to date
  • I have added comments to hard-to-understand areas of my code
  • I have made corresponding changes to the README.md

Jccqt added 2 commits July 12, 2025 06:49
Refactored nested if-else to switch-case in ValidParentheses.cs
@Jccqt Jccqt requested a review from siriak as a code owner July 11, 2025 23:09
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 11, 2025

Codecov Report

Attention: Patch coverage is 65.38462% with 9 lines in your changes missing coverage. Please review.

Project coverage is 95.10%. Comparing base (8fec042) to head (a2c5d5d).

Files with missing lines Patch % Lines
Algorithms/Strings/ValidParentheses.cs 65.38% 5 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #511      +/-   ##
==========================================
- Coverage   95.18%   95.10%   -0.08%     
==========================================
  Files         269      270       +1     
  Lines       10894    10920      +26     
  Branches     1531     1537       +6     
==========================================
+ Hits        10369    10386      +17     
- Misses        400      405       +5     
- Partials      125      129       +4     

☔ 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.

@Jccqt Jccqt closed this Jul 11, 2025
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.

1 participant