Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Arbitrarily Nested HoH

by MidLifeXis (Monsignor)
on Oct 15, 2010 at 14:58 UTC ( [id://865485]=note: print w/replies, xml ) Need Help??


in reply to Re: Arbitrarily Nested HoH
in thread Arbitrarily Nested HoH

Perhaps I am misunderstanding your comment, but if your recursion uses a stack (which, I would say, at least the calls do), the solution has to be LIFO. A queue would be FIFO.

This could just be a difference between understanding your comment differently than the way you meant to say it.

--MidLifeXis

Replies are listed 'Best First'.
Re^3: Arbitrarily Nested HoH
by sundialsvc4 (Abbot) on Oct 15, 2010 at 17:08 UTC

    Stack.   Queue.   Whatever.   :-D

    “Verily, verily, I code unto thee:   he who seeks to be first, shall be last...”   :-;

    You store the items, in some method and according to some suitable discipline, and then you “work through the list(s).”   That’s the gist of it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found