[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Weekend Edition Sunday Puzzle (from c.l.p.mod)



>From comp.lang.perl.mod:

This week's Weekend Edition Sunday Puzzle With Will Shortz on
National Public Radio presents a problem of a class that can be
defined as "match a substring of exactly n characters from the
unordered set of discrete characters { c1, c2, ..., cn }".

Here's the puzzle:

   Take the 9-letter-word SUBDEACON (the name of a church official).
   The word contains the first 5 letters of the alphabet, ABCD and E
   consecutively inside it, although not in alphabetical order. This
   is a two-part challenge: first, can you think of a common 8-letter
   word that has ABCDE consecutively inside it, not necessarily in
   alphabetical order; second, can you think of a common 7-letter word
   with the same property? Both answers are uncapitalized words that
   are familiar to everyone.

   (C) 1999 Will Shortz


Solutions in Perl are running over there. Here's the puzzle in case anyone
wants to play here, or isn't on c.l.p.mod or...
-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe