1 test case is failing why?
Challenge- max value in the array
Okay so you have to find maximum in an array
So why your code is failing is because what if all the elements in an array are of negative term. Suppose array has -2, -4,-1,-3
In this case answer should be -1 , but yours is giving 0
I have debugged it for you https://ide.codingblocks.com/s/368051
Have a look