All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General > Word Problems
Six Letters And Eight Words (Posted on 2003-07-31) Difficulty: 3 of 5
What word begins with 'h', ends with 'n', contains six letters, and contains eight words besides itself without transposing a single letter?

See The Solution Submitted by Ravi Raja    
Rating: 2.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution javascript solution | Comment 5 of 15 |
Charlie's comment gave me an idea. Here's a programming solution the other way (without skipping letters), using the ENABLE list (wordList[] is an array of all the words):

function find(word) {
for (var w=0; w<wordList.length; w++) {
wrd=wordList[w];
if (word==wrd)
return true;
}
return false;
}

var hn=new Array();
for (var w=0; w<wordList.length; w++) {
word=wordList[w];
if (word.length==6) {
if (word.charAt(0)=='h') {
if (word.charAt(5)=='n')
hn[hn.length]=word;
}
}
}

for (var h=0; h<hn.length; h++) {
var count=0;
Word=hn[h];
Len=Word.length;
document.write(Word + ":<br>");
for (var c=0; c<Len; c++) {
for (var len=1; len<=(Len-c); len++) {
word=Word.substr(c, len);
if (find(word) & word.length<6) {
if (count!=0)
document.write(\", \")
document.write(word);
++count;
}
}
}
document.write(\"<br>Total: " + count + "<br><br>");
}

This returned the following list:

hadron:
ha, had, a, ad, on
Total: 5

haemin:
ha, hae, haem, a, ae, em, mi, i, in
Total: 9

hagdon:
ha, hag, a, ag, do, don, on
Total: 7

happen:
ha, hap, a, pe, pen, en
Total: 6

hapten:
ha, hap, a, apt, ten, en
Total: 6

harden:
ha, hard, a, ar, de, den, en
Total: 7

harken:
ha, hark, a, ar, ark, ken, en
Total: 7

harmin:
ha, harm, a, ar, arm, mi, i, in
Total: 8

harpin:
ha, harp, a, ar, pi, pin, i, in
Total: 8

hasten:
ha, has, hast, haste, a, as, ten, en
Total: 8

hatpin:
ha, hat, a, at, pi, pin, i, in
Total: 8

hausen:
ha, a, us, use, sen, en
Total: 6

hazzan:
ha, a, a, an
Total: 4

heaven:
he, heave, eave, a, ave, en
Total: 6

hempen:
he, hem, hemp, em, pe, pen, en
Total: 7

herein:
he, her, here, er, ere, re, rei, rein, i, in
Total: 10

hereon:
he, her, here, er, ere, re, eon, on
Total: 8

heroin:
he, her, hero, er, i, in
Total: 6

hetman:
he, het, et, ma, man, a, an
Total: 7

hidden:
hi, hid, i, id, de, den, en
Total: 7

hodden:
ho, hod, od, odd, de, den, en
Total: 7

hoddin:
ho, hod, od, odd, din, i, in
Total: 7

hoiden:
ho, i, id, de, den, en
Total: 6

holden:
ho, hold, old, olden, de, den, en
Total: 7

holpen:
ho, holp, pe, pen, en
Total: 5

hoyden:
ho, hoy, oy, de, den, en
Total: 6

hyalin:
ya, a, al, li, lin, i, in
Total: 7

hyphen:
hyp, he, hen, en
Total: 4

So, there are quite a few words with more than 8, but the one I found before is still the only one with all common or 'acceptable' words.
  Posted by DJ on 2003-07-31 12:03:00
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information