Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Efficient algorithm needed to split Set::IntSpan objects

by blokhead (Monsignor)
on Sep 23, 2009 at 14:00 UTC ( [id://796975]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    00112233222000
    
  2. or download this
    (3,1), (5,2), (7,3), (9,2), (12,0)
    
  3. or download this
    my @intervals = ([3,11], [5,8], [7,11]);
    for (@intervals) {
    ...
        $total += $delta{$_};
        push @points, [$_, $total];
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-23 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found