第30459题 单选题
给定数组int[] nums = {8, 3, 15, 6, 21, 10, 17},使用枚举算法查找数组中的最大值,下列说法正确的是?

枚举查找数组最大值的常规流程为:初始化最大值为数组首元素,遍历数组剩余所有元素,依次与当前最大值比较,若当前元素大于最大值则更新最大值,遍历结束后得到最终最大值。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析