santonegro has asked for the wisdom of the Perl Monks concerning the following question:
| number elements in array | /3 | %3 | size of each array |
|---|---|---|---|
| 6 | 2 | 0 | 2,2,2 |
| 7 | 2 | 1 | 3,2,2 |
| 8 | 2 | 2 | 3,3,2 |
| 9 | 3 | 0 | 3,3,3 |
| 10 | 3 | 1 | 4,3,3 |
| 11 | 3 | 2 | 4,4,3 |
| 12 | 4 | 0 | 4,4,4 |
| 13 | 4 | 1 | 5,4,4 |
| 14 | 4 | 2 | 5,5,4 |
| 15 | 5 | 0 | 5,5,5 |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: breaking an array into nearly equal parts
by revdiablo (Prior) on Dec 14, 2005 at 02:06 UTC | |
by spiritway (Vicar) on Dec 14, 2005 at 05:40 UTC | |
by Roy Johnson (Monsignor) on Dec 14, 2005 at 18:32 UTC | |
|
Re: breaking an array into nearly equal parts
by davido (Cardinal) on Dec 14, 2005 at 02:08 UTC | |
|
Re: breaking an array into nearly equal parts
by TedPride (Priest) on Dec 14, 2005 at 03:27 UTC | |
|
Re: breaking an array into nearly equal parts
by Mandrake (Chaplain) on Dec 14, 2005 at 09:25 UTC | |
|
Re: breaking an array into nearly equal parts
by nicoaimetti (Acolyte) on Dec 15, 2005 at 01:07 UTC | |
by nicoaimetti (Acolyte) on Dec 15, 2005 at 04:41 UTC |