Casting out nines: Difference between revisions
Content added Content deleted
Line 2,102: | Line 2,102: | ||
fn cast_out(base int, start int, end int) []int { |
fn cast_out(base int, start int, end int) []int { |
||
b := []int{len: base - 1, init: index} |
|||
⚫ | |||
⚫ | |||
mut x, mut k := start / (base - 1), 0 |
mut x, mut k := start / (base - 1), 0 |
||
⚫ | |||
⚫ | |||
for { |
for { |
||
for n in ran { |
for n in ran { |