Doubt - Confused

in thr previous video,
(b-a)%m = b%m - a%m + m)%m

but in this video,
he has taken (b-a)%m = 0 =>b%m == a%m ??? How

Is there any condition to be considered like b > a or something

Hi @akhil54,

=> (b-a)%m = 0
=> (b%m - a%m + m)%m = 0
=> (b%m + m)%m = a%m
=> (b%m + m%m)%m = a%m
=> b%m + 0 = a%m
=> b%m = a%m

Both will give the same result.

Yeah, My bad Thanks for clearing doubt

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.