SyntaxFix
Write A Post
Hire A Developer
Questions
May I suggest that you initialize your "max and min so far" variables not to infinity, but to the first number in the array?