Divisible subarray prob(number theory)

at line 34: why c[0]++ is incremented
at line 36: why c[i]>=2 why 2?

Hello @hrishikeshjanjal,

at line 34: why c[0]++ is incremented
If you would rewatch the video then you would find that they have taken an extra 0.
Thus, c[0] is incremented by 1 to accommodate that extra zero.

at line 36: why c[i]>=2 why 2?
You need atlesat 2 same values to account for a subarray.

I would suggest you to rewatch the video and let me know if face any issue.

Hope, this would help.
Give a like if you are satisfied.

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.