Word Puzzle

downs default_357-line at yahoo.de
Thu Aug 7 19:46:52 PDT 2008


Wyverex wrote:
> "Take the names of two U.S. States, mix them all together, then
> rearrange the letters to form the names of two other U.S. States. What
> states are these?"
> 
> Mark answers with (spoiler!)
> 
> 
> //All 50 states, lowercase, no spaces!!
> static char[][50] states =
> ["alabama","alaska","arizona","arkansas","california","colorado",
> "connecticut","delaware","florida","georgia","hawaii","idaho",
> "illinois","indiana","iowa","kansas","kentucky","louisiana",
> "maine","maryland","massachusetts","michigan","minnesota",
> "mississippi","missouri","montana","nebraska","nevada",
> "newhampshire","newjersey","newmexico","newyork","northcarolina",
> "northdakota","ohio","oklahoma","oregon","pennsylvania","rhodeisland",
> "southcarolina","southdakota","tennessee","texas","utah","vermont",
> "virginia","washington","westvirginia","wisconsin","wyoming"];

I answered this before.

http://www.reddit.com/comments/5zhs8/a_simple_programming_puzzle_seen_through_three/c02ceab

(Spoiler. Duh.)


More information about the Digitalmars-d-learn mailing list