Can you please check the code for errors as the test cases are not passing?
this will pass all the cases
but in some other sites, it wonβt
sp for that, keep check if all the elements are negative, if yes, all the elements are negative then return the maximum of those
1 Like