TADM2E 8.11

From Algorithm Wiki
Revision as of 15:18, 22 December 2016 by Azazel (talk | contribs) (Created page with "For each length of range l in 1 .. n, for each starting index i, calculate the sum of the range of length l, starting at i as the sum of the range of length l - 1 starting at...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

For each length of range l in 1 .. n, for each starting index i, calculate the sum of the range of length l, starting at i as the sum of the range of length l - 1 starting at i plus the integer at i + l - 1 mod n.