Skip to content

fix: handle squares properly in isSquareFree#228

Merged
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:is_square_free_patch
Feb 14, 2024
Merged

fix: handle squares properly in isSquareFree#228
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:is_square_free_patch

Conversation

@vil02

@vil02 vil02 commented Feb 9, 2024

Copy link
Copy Markdown
Member

The current implementation of isSquarefFree returns true for 9 = 3*3. This PR fixes that and adds missing tests and reorganizes them.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4f6cd6c) 96.32% compared to head (5460d2f) 96.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
+ Coverage   96.32%   96.43%   +0.11%     
==========================================
  Files          97       97              
  Lines        1797     1797              
  Branches      347      347              
==========================================
+ Hits         1731     1733       +2     
+ Misses         66       64       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vil02 vil02 marked this pull request as ready for review February 9, 2024 20:55
@raklaptudirm raklaptudirm merged commit 650d553 into TheAlgorithms:master Feb 14, 2024
@vil02 vil02 deleted the is_square_free_patch branch February 14, 2024 16:08
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.

4 participants