Question: Traversing an array to find the max ( or min ) is common. Given an array of integers, output the maximum integer found in the

Traversing an array to find the max (or min ) is common. Given an array of integers, output the maximum integer found in the array. If the input is 43826, the output is 8. The first integer input denotes the size of the array (number of integers in the set)
Sample Input #1:
4-8-9-10-11
Output:
-8
Sample Input #2:
199
Output:
99
Sample Input #3
75554454
Output:
5
Traversing an array to find the max ( or min ) is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!