Untitled diff

创建于 差异永不过期
7 删除
11
1 添加
6
int maxValue = ABS(x[0]);
int maxValue = ABS(x[0]);
if (n > 1) {
for (i = 1; i < n; i++) {
for (i = 1; i < n; i++) {
maxValue = MAX(maxValue, ABS(x[i]);
int currentValue = ABS(x[i])
if (currentValue > maxValue) {
maxValue = currentValue;
}
}
}
}
return maxValue;
return maxValue;