题目:

题解:
class Solution {
public int integerBreak(int n) {
if (n <= 3) {
return n - 1;
}
int quotient = n / 3;
int remainder = n % 3;
if (remainder == 0) {
return (int) Math.pow(3, quotient);
} else if (remainder == 1) {
return (int) Math.pow(3, quotient - 1) * 4;
} else {
return (int) Math.pow(3, quotient) * 2;
}
}
}
![[Linux][OS][详解信号的产生]](https://img-blog.csdnimg.cn/img_convert/b02323d0041502a58e01ae7cc788b33f.png)

















