in reply to Re: How to code this?
in thread How to code this?
The interval is not the number of arrays within the group, it is the interval covered by the integer keys to the arrays in the group.
Therefore, with an interval of 2, 4 & 6 are not in the same group. Neither are 8 & 11.
Also, to avoid redoing work already done, when a new array is added to the group, it is necessary not only to discard any old arrays that are no longer a part of the group (Ie. no longer covered by the interval), but distinguish between those arrays that remain (from the previous group), and the new one that has been added.
It is quite tricky to even describe, let alone code!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to code this?
by GrandFather (Saint) on Nov 15, 2011 at 03:00 UTC | |
by BrowserUk (Patriarch) on Nov 15, 2011 at 03:40 UTC | |
|
Re^3: How to code this?
by locked_user sundialsvc4 (Abbot) on Nov 15, 2011 at 02:49 UTC | |
by BrowserUk (Patriarch) on Nov 15, 2011 at 03:51 UTC | |
by admiral_grinder (Pilgrim) on Nov 15, 2011 at 14:54 UTC | |
by BrowserUk (Patriarch) on Nov 15, 2011 at 17:43 UTC |