Max value in array

I have written the program correctly but one of the test cases isn’t passing.Kindly help me out.

instead of initializing max with 0 initialize with with minimum possible value in the array

1 Like