TheAlgorithms / Java

All Algorithms implemented in Java
MIT License
58.84k stars 19.03k forks source link

fix: `FindKthNumberTest` #5444

Closed alxkm closed 3 weeks ago

alxkm commented 3 weeks ago

In some cases, this code generates incorrect arrays, causing the test to not pass.

The issue happens due to improper constraints on the generated arrays. This was identified in a few previous builds.

This PR addresses the issue and has been thoroughly tested.

codecov-commenter commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 51.25%. Comparing base (e0a1164) to head (e802eff).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5444 +/- ## ========================================= Coverage 51.25% 51.25% Complexity 3193 3193 ========================================= Files 524 524 Lines 15194 15194 Branches 2893 2893 ========================================= Hits 7788 7788 Misses 7084 7084 Partials 322 322 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.