Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: "Countdown" (golf)

by stuffy (Monk)
on Dec 01, 2001 at 08:17 UTC ( [id://128830]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: "Countdown" (golf)
in thread "Countdown" (golf)

dragonchild
your solution has the same problems as gbarr It only prints out the first of the longest words.

Stuffy
That's my story, and I'm sticking to it, unless I'm wrong in which case I will probably change it ;~)
may be reproduced under the SDL

Replies are listed 'Best First'.
Re4: "Countdown" (golf)
by blakem (Monsignor) on Dec 01, 2001 at 08:38 UTC
    I think you might want to recheck your tests... perhaps with your test there *is* only one longest word.

    For the list qw(a r t) both dragonchilds and gbarrs solutions produce 'art', 'tar', and 'rat' for me.

    -Blake

Log In?
Username:
Password:

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

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

    No recent polls found