Skip to content

Conversation

@MuhammadMuneebMubashar
Copy link

@MuhammadMuneebMubashar MuhammadMuneebMubashar commented Feb 9, 2026

Fix logic to find maximum value in the array.

  • 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 algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

Fix logic to find maximum value in the array.
MuhammadMuneebMubashar

This comment was marked as duplicate.

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.33%. Comparing base (0c79d33) to head (ee5e07e).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7262      +/-   ##
============================================
+ Coverage     79.31%   79.33%   +0.01%     
  Complexity     6990     6990              
============================================
  Files           781      781              
  Lines         22958    22956       -2     
  Branches       4510     4508       -2     
============================================
+ Hits          18210    18211       +1     
+ Misses         4020     4019       -1     
+ Partials        728      726       -2     

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

Refactored the FindMax class by simplifying the constructor and optimizing the findMax method's checks and loop.
Copy link
Author

@MuhammadMuneebMubashar MuhammadMuneebMubashar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

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.

2 participants