Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Find common prefix from a list of strings

by demerphq (Chancellor)
on Jul 14, 2003 at 20:44 UTC ( [id://274157]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub insert {
      my $trie=shift;
    ...
    my %trie;
    insert(\%trie,$_) foreach qw(model4run1 model2run1 model4run2 model1ru
    +n1);
    print common(\%trie);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found