http://ide.codingblocks.com/#/s/16164
this is my code.
it shows wrong answer for test case 3.
please guide me.
Max element in array
Your code will not work if I have only negative elements in an array
e.g.,
5
-1 -1 -3 -4 -5
Then answer should be -1 but your code gives 0.
You can initialize m to be INT_MIN which is present in ‘climits’ header file