Skip to content

Commit 6548c23

Browse files
committed
Update integer-break.cpp
1 parent ee28bff commit 6548c23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

C++/integer-break.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Solution {
3535
if (n % 3 == 0) { // n = 3Q + 0, the max is 3^Q * 2^0
3636
res = pow(3, n / 3);
3737
} else if (n % 3 == 2) { // n = 3Q + 2, the max is 3^Q * 2^1
38-
res = pow(3, n / 3) * 2;
38+
res = pow(3, n / 3) * 2;
3939
} else { // n = 3Q + 4, the max is 3^Q * 2^2
4040
res = pow(3, n / 3 - 1) * 4;
4141
}

0 commit comments

Comments
 (0)