in reply to Re^3: Split range 0 to M into N non-overlapping (roughly equal) ranges.
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.
I'm seeing the same numbers as you. But what is your output for: ranges -M=20 -N=3 ?
I get: 0-6, 7-13, 14-20.
I expect the last index to be 19.
I get: 0-6, 7-13, 14-20.
I expect the last index to be 19.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Split range 0 to M into N non-overlapping (roughly equal) ranges.
by BrowserUk (Patriarch) on Mar 13, 2011 at 07:13 UTC | |
by repellent (Priest) on Mar 13, 2011 at 07:32 UTC | |
by BrowserUk (Patriarch) on Mar 13, 2011 at 07:51 UTC |
In Section
Seekers of Perl Wisdom