Ten nine-letter words have been separated into units of three letters. The units have been randomly put in list given below.
Can you determine the original 10 words?
abh adu emb new ref
oks asi ood ack eds
lex orr lth ezz lyw
ble abr hij par tex
ent ons ach les ack
ers aly zed ive tbo
clearvars,clc
parts=['abh';'adu'; 'emb'; 'new'; 'ref'; ...
'oks'; 'asi'; 'ood'; 'ack'; 'eds'; ...
'lex'; 'orr'; 'lth'; 'ezz'; 'lyw'; ...
'ble'; 'abr'; 'hij'; 'par'; 'tex'; ...
'ent'; 'ons'; 'ach'; 'les'; 'ack'; ...
'ers'; 'aly'; 'zed'; 'ive'; 'tbo'];
parts=string(parts);
unused=reshape(parts,1,30);
idxs=combinator(30, 3, 'p');
wds=parts(idxs);
for i=1:length(wds)
w=wds(i,:);
wparts=w;
w=char(w');
w=w';
w=reshape(w,1,9);
if isword(w)
disp(w)
unused=setdiff(unused,wparts);
end
end
finds
abhorrent
abhorrers
adulthood
embezzles
newlyweds
reflexive
textbooks
abrasions
hijackers
bleachers
hijackers
paralyzed
Strining out the spurious entries (abhorers and second hijackers), we get:
abhorrent
adulthood
embezzles
newlyweds
reflexive
textbooks
abrasions
hijackers
bleachers
paralyzed
"ack" occurs twice, but is used once, while "ers" occurs once but is used twice.
|
Posted by Charlie
on 2024-08-24 10:33:04 |