TheAlgorithms / JavaScript

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
https://the-algorithms.com/language/javascript
GNU General Public License v3.0
32.19k stars 5.52k forks source link

feat: remove duplicated `gcd`-like functions #1642

Closed vil02 closed 6 months ago

vil02 commented 6 months ago

Open in Gitpod know more

Describe your change:

This PR removes the duplicated implementation of recursive gcd and moves an iterative one to Maths.

Checklist:

codecov-commenter commented 6 months ago

Codecov Report

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

Project coverage is 84.07%. Comparing base (0204198) to head (71057b1).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1642 +/- ## ========================================== + Coverage 83.92% 84.07% +0.14% ========================================== Files 376 375 -1 Lines 19698 19688 -10 Branches 2910 2914 +4 ========================================== + Hits 16532 16552 +20 + Misses 3166 3136 -30 ```

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