Arrays - max value in array

in the problem only 2 test cases are passed.
how to count for negative nos in the array ?

Hey @yogesh_chahar
All the number will be greater than equal to -1000000000
So set your ans as -1000000000 initially and then traverse the whole array and compare with it to find the maximum value.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.