mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-05 03:29:46 +08:00
fix: power_of_two algorithm redundant conditional 'else' (#1936)
This commit is contained in:
@@ -46,9 +46,9 @@ int power_of_two(int n) {
|
||||
|
||||
if (result == 0) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
} // namespace math
|
||||
|
||||
|
||||
Reference in New Issue
Block a user