Hacker News new | ask | show | jobs
by afiori 1061 days ago
0 = -N mod N and N-1 = -1 mod N

The consistency is that if i < 0 and l[i] exists then l[i] = l[i+N]