Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Packaging Algorithm

by blogan (Monk)
on Nov 07, 2000 at 08:41 UTC ( #40310=note: print w/replies, xml ) Need Help??

in reply to Packaging Algorithm

I'm trying to think of an algorithm, and this is what I've gotten so far:
foreach (@closefamilymember) { $gift = perfectgift $_; buy($gift); push @boughtengifts, $gift; } foreach (@boughtengifts) { $box->pack($_); } foreach (@notsoclosemember) { $gift = perfectgift $_; if (!box->pack($gift)) { $gift = giftthatwillfitinfreespace $_; $box->pack($gift); } } box->mail();

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://40310]
[johngg]: Corion: yes, there was not much movement on stage, they just stood behing their instruments and went through the set. The music was good though!
[johngg]: And it was loud - the only gig I've been to that was louder (painfully so) was Dr. Feelgood in a pub in Southend - awesome!
[marto]: Dr. Feelgood in a pub, that must have been a while ago
[johngg]: Yes, must be nearly 30 years ago.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-03-24 12:02 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.