Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^11: Challenge: 8 Letters, Most Words

by Limbic~Region (Chancellor)
on Oct 05, 2013 at 13:23 UTC ( [id://1057029]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %alphabet = (%alphabet, map { $_ => 1 } @chars);
    
  2. or download this
    @alphabet{@chars} = (); # No need to set values to 1 as you only ever 
    +use keys
    
  3. or download this
    
        if(defined $sorted{$characters}) {
    ...
        else {
            $sorted{$characters} = [$line];
        }
    
  4. or download this
    push @{$sorted{$characters}}, $line;
    
  5. or download this
        foreach (my $pos2 = 0; $pos2 < $count; $pos2++) {
            next if $pos2 < $pos1;
    
  6. or download this
    for (my $pos2 = $pos1; $pos2 < $count; $pos2++) {
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found