i am getting different answer…
Answers not matching
@sindhu_21 Variables mx and arr must be initialized inside the for loop(which is for the test cases). Else they will carry the value of previous test case values giving wrong result.
still not working…
According to the constraints , you must use long long int and also increase the size of the array.
Check the constraints and modify your code accordingly.
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.