The San Francisco Chronicle has a word game where all the letters are scrambled up and you have to figure out what the word is. Imagine that a scrambled word is 5 characters long:
How many possible solutions are there?
What if we know which 5 letters are being used?
Develop an algorithm to solve the word.
The Solution
This is a fantastic way to phrase the question. There are 265 solutions (each letter can be one of 26 possible values). If we know which five letters are being used there are 55 possible solutions.
I've got a masters degree in computer science and over 10 years of experience building web-based systems using Java/J2EE, Ruby, Rails and PHP. I'm a strong believer in the effectiveness of Agile Methods. Read more »
San Francisco Scramble
The Problem
The San Francisco Chronicle has a word game where all the letters are scrambled up and you have to figure out what the word is. Imagine that a scrambled word is 5 characters long:
The Solution
This is a fantastic way to phrase the question. There are 265 solutions (each letter can be one of 26 possible values). If we know which five letters are being used there are 55 possible solutions.