can u illustrate the negative no mod using an example…
like why we r doing and how is it happening
I didnt get the negative no expalanantion
20%5 = 0
10%5 = 2
20%5 - 11%5 = -1
and (20-11)%5 = 4 = (-1 + 5)%5
I hope it clears your doubt.
can u take an array as an example and then tell
n = 5
and the array is
-9 -9 -9 -9 -9
soon the sum becomes negative the mod also becomes negative.
1 Like
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.