My code is not passing 3 test cases, kindly provide a better code highlighting my mistakes.
DIVISIBLE SUBARRAYS
Hello @yash_aryan please see this:
if you have any doubt in this:
you can ask here:
Happy Learning!!
Please explain these 3 questions
- mod[((cumSum % n) + n) % n]++;//What is it’s use in the code?
- result += (mod[i] * (mod[i] - 1)) / 2;//What is it’s use in the code?
- How to identify that where we should use int32_t main()
Hello @yash_aryan have you seen the editorial for this question?
if not watch this : you will understand everything
wherever we define int as long long int there we have to declare int in int main as int32_t main.
Happy Learning!!
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.