+ 1
CHALLENGE
Two words "alternade" if taking alternating letters from each forms a new word. Write a function 'is_interlocked' that takes a word as input and checks if two or more meaningful words can be formed by this word (subwords need not be of the same length). For example: TOTAL = 'schooled', forms ONE = 'shoe' and TWO = 'cold'. TOTAL ='lacerated', forms ONE = 'let', TWO = 'are' and THREE ='cad'. USING DICTIONARY EX:D={SCHOOLED:(SHOE,COLD,LACERATED,LET,ARE,CAD}
9 Answers
+ 5
Interesting :) How does one get the initial dictionary (just curious)?
+ 4
Thank u @Gordie !! From "schooled" word even it should form "lacerated" word??
+ 4
From "schooled" word it needs also to form "lacerated" word!@Gordie
+ 4
yeah !!schooled={shoe,cold,lacerated}
+ 3
you have to initalize the dictionary!!@kirk Schafer