Skip to content

Commit

Permalink
fix: power_of_two algorithm redundant conditional 'else' (TheAlgorith…
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosZoft authored Feb 10, 2022
1 parent 27ced49 commit 0f5b36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math/power_of_two.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ int power_of_two(int n) {

if (result == 0) {
return 1;
} else {
return 0;
}

return 0;
}
} // namespace math

Expand Down

0 comments on commit 0f5b36d

Please sign in to comment.