Array size declaration

how to declare an array for the given constraint…i think that’s probably the reason why my test case fails.

hi @tusharpant2001
just initialize max variable with INT_MIN and not 0… ur code will work fine…
refer this code -->

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.