Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Decomposing sum to unique sets of summands

by BrowserUk (Patriarch)
on Oct 29, 2008 at 02:04 UTC ( [id://720140]=note: print w/replies, xml ) Need Help??


in reply to Re: Decomposing sum to unique sets of summands
in thread Decomposing sum to unique sets of summands

Line 13 should be $temp += pop @p if @p and $p[-1] == 3; otherwise you get a warning for inputs divisible by 2;


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found