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

 The right subset (Posted on 2014-04-13)

ZEROONETwOThReEFOUrFIVeSiXsEVENEIgHTNinE
In the above concatenation of the cardinal numbers zero-to-nine WHERE IS GIN? is spelled by the small letters.

In a similar way , one can select ERRORS, WORSEN, RESIGN, ROOFS etc.

a. Try to create the longest valid word.
b. Try to create the longest sensible question.
c. Forget about the order, using any letters from the available Z-E chain create the longest valid word/sentence.

 No Solution Yet Submitted by Ady TZIDON No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 computer exploration--words only; no phrases Comment 1 of 1

src\$ = LCASE\$("ZEROONETwOThReEFOUrFIVeSiXsEVENEIgHTNinE")
CLS
OPEN "\words\words.txt" FOR INPUT AS #1
DO
LINE INPUT #1, w\$
s\$ = src\$
good = 1: p = 1
FOR i = 1 TO LEN(w\$)
ix = INSTR(p, s\$, MID\$(w\$, i, 1))
IF ix = 0 THEN good = 0: EXIT FOR
p = ix + 1
NEXT
IF good THEN
IF LEN(w\$) > 8 THEN
max = LEN(w\$)
PRINT w\$, max
END IF
END IF
LOOP UNTIL EOF(1)
CLOSE
PRINT
OPEN "\words\words.txt" FOR INPUT AS #1
DO
LINE INPUT #1, w\$
s\$ = src\$
good = 1
FOR i = 1 TO LEN(w\$)
ix = INSTR(s\$, MID\$(w\$, i, 1))
IF ix = 0 THEN good = 0: EXIT FOR
s\$ = LEFT\$(s\$, ix - 1) + MID\$(s\$, ix + 1)
NEXT
IF good THEN
IF LEN(w\$) > 13 THEN
max = LEN(w\$)
PRINT w\$, max
END IF
END IF
LOOP UNTIL EOF(1)
CLOSE

`Part a words of at least 9 letters:`
`enthusing      9foresight      9rehousing      9rethought      9retrousse      9rewrought      9theorising     10threonine      9`
`Part c (words of at least 14 letters):`
`ethnohistories               14foreshortening               14forthrightness               14heterogeneities              15interventionist              15interventionists             16nonforfeitures               14nonnitrogenous               14nonuniversities              15noteworthiness               14overextensions               14overgenerosities             16overingenuities              15overintensities              15overnourishing               14overnutritions               14oversweetening               14reinterviewing               14ungenerosities               14`

 Posted by Charlie on 2014-04-13 13:02:11

 Search: Search body:
Forums (0)