I can make it differently, but no cleaner
It always bugs me when something notionally so simple doesn't seem to have a clean solution. I do hope someone will prove me wrong.
In use, it doesn't matter if the ranges vary by more than the minimum. Up to 1% variability, smallest to largest, would have no appreciable affect. But it still feels like I'm missing some trick that would allow a simple and direct implementation.
In reply to Re^2: Split range 0 to M into N non-overlapping (roughly equal) ranges.
by BrowserUk
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |