Re: Re: Anagram Type Puzzle
| From: | nayco | Date: | Mon, 10 Sep 2001 08:40:41 +0000 |
| Subject: | Re: Re: Anagram Type Puzzle | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66699@lists.php.net to get a copy of this message | ||
WHAOOOO ....
-> for school lessons ???
let's think about it ...
----- Original Message -----
From: Sebastian Bergmann <sb@sebastian-bergmann.de>
To: Ralph Guzman <raguzman@netraiser.com>
Cc: PHP Developer Mailing List <php-dev@lists.php.net>;
<php-general@lists.php.net>
Sent: Monday, September 10, 2001 10:27 AM
Subject: [PHP] Re: [PHP-DEV] Anagram Type Puzzle
> The list <php-dev@lists.php.net> is dedicated to the development
> _of_ PHP, not to developing _with_ PHP -- this is what the
> <mailto:php-general@lists.php.net> list is for.
>
> I forward your message there, thanks for your understanding.
>
> Yours,
> Sebastian
>
> Ralph Guzman wrote:
> >
> > Im trying to figue out the following anagram using PHP. Here is the
> > problem:
> >
> > Using letters of the alphabet represented by a number, I have to come
> > up with words that add up to exactly 100.
> >
> > Numbers are in reverse where A=26 and Z=1, so for example:
> >
> > A = 26
> > B = 25
> > C = 24
> > ...
> > ...
> > X = 3
> > Y = 2
> > Z = 1
> >
> > So let's say the word 'acronym'
> >
> > A + C+R+0+N+Y+M
> > 26 + 24 + 9+12+13+2+14 = 100
> >
> > My thoughts were to download a list of words in the dictionary, then
> > read the file and somehow replace each letter by its number, then add
> > each letter for each word and see which words would equal to 100.
> >
> > So I am emailing this list for any suggestions or examples of code
> > that I can use to accomplish this. Any help?
> >
> > Thanks much.
>
> --
> Sebastian Bergmann Measure Traffic & Usability
> http://sebastian-bergmann.de/
> http://phpOpenTracker.de/
>
> Did I help you? Consider a gift:
> http://wishlist.sebastian-bergmann.de/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>