| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #1910 +/- ##
==========================================
+ Coverage 85.91% 85.93% +0.01%
==========================================
Files 379 379
Lines 19778 19798 +20
Branches 3016 3021 +5
==========================================
+ Hits 16993 17013 +20
Misses 2785 2785 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Optimizes factor calculation by examining divisor pairs only up to the square root of the input.
This reduces the running time from O(n) to O(sqrt(n)) and avoids allocating an intermediate array containing every integer up to the input. Results remain sorted, and perfect-square roots are not duplicated.
Testing
AI assistance was used to prepare this focused change. I reviewed and validated the implementation.