Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Reconstructing List Order From Partial Subsets

by rbsgoat (Novice)
on Jul 26, 2006 at 15:41 UTC ( [id://563826]=note: print w/replies, xml ) Need Help??


in reply to Reconstructing List Order From Partial Subsets

set up an array of values that define the order.
if the index of the current value is less than the previous value warn and inc the hash counter.
when doing the final list just foreach over the array and print out the number of items in the correct order.
print "$item\n" x $hash{$item};

Log In?
Username:
Password:

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

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

    No recent polls found