Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Split range 0 to M into N non-overlapping (roughly equal) ranges.

by ELISHEVA (Prior)
on Mar 13, 2011 at 05:22 UTC ( #892900=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $M,$N         final array element (should be $M)
    (14,11) ==> final=13
    ...
    (100,49) ==> final=99
    (100,98) ==> final=99
    (100,99) ==> final=99
    
  2. or download this
    use strict;
    use warnings;
    ...
    Error rate: 2.47524752475248
    elisheva_ikegami
    Error rate: 0
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2021-10-19 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (76 votes). Check out past polls.

    Notices?