What is the error?
Hey @shivansh.sm1
Input array and mx should be of type long long since 10^6 * 10^9 can be upto 10^15 which is long long type value.
If your doubt is resolved please mark it as closed.
still not passed even after correcting.
@shivansh.sm1
I just submitted with your code with long long instead of int everywhere and the j variable change and got all correct. Please do both the changes and submit your 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.