Finding max/min: Initialize to the first element, then loop comparing each remaining element.
How to apply it: Avoid initializing max to 0 if all values could be negative.
Course: AP Computer Science A · Unit: Array
Practice questions about Finding max/min on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.