Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Linked List Problems (2002) [pdf]. Parent comment
Your explanation is difficult to follow when you do distributivity of % over +. I mean when you move from
(i + t) % n = (j + 2t) % n
(i % n) + (t % n) = (j % n) + (2t % n)
(5 + x) % 3 = 4 5 % 3 + x % 3 = 4
It's better to express your explanation using "= (mod n)" from the beginning.
(i + t) % n = (j + 2t) % n i + t = j + 2t (mod n)
There are no comments on this comment yet.
Your explanation is difficult to follow when you do distributivity of % over +. I mean when you move from
to Here I read the '=' as normal number equality. A simplified example to demostrate that distributivity is not valid here: In the second line x=5 is a solution. But in the first line x is not a solution.It's better to express your explanation using "= (mod n)" from the beginning.