in reply to Re: breaking an array into nearly equal parts
in thread breaking an array into nearly equal parts
You're right - and the pattern holds true. A positive integer can either be exactly divisible by three, have a remainder of 1, or a remainder of 2. Your idea is probably one of the simplest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: breaking an array into nearly equal parts
by Roy Johnson (Monsignor) on Dec 14, 2005 at 18:32 UTC |