https://ide.codingblocks.com/s/48691
sir, this code is running on sample case but is failing in test case. wht is the error?
https://ide.codingblocks.com/s/48691
sir, this code is running on sample case but is failing in test case. wht is the error?
Hey Yukti, your code will not work if all the elements in the array are negative, so initialize your max with array’s first element at the start.