☆─────────────────────────────────────☆
roadtrip (dream on) 于 (Fri Sep 16 11:30:36 2005) 提到:
A 'word square' is an NxN arrangement of letters which forms words
horizontally and vertically, such as these 5x5 examples:
heart
ember
abuse
resin
trend
Read a dictionary containing 5-letter words then print all
valid 5x5 word squares which can be made from those words.
A square is valid if it contains only words from the dictionary.
how to do it good? trie? graph?
any opinion? thx
☆───────────────