A solution to the NPR Sunday Puzzle for Jan 01, 2017. This code finds a number of names that, when stacked upon each other, form a "word square" such that the names are spelled vertically and horizontally in the same order.
This is the output of the code with the current input file.
572 unique names.
Solution 1:
edgar
deane
gauge
angus
reese
------
Solution 2:
edgar
deane
gaige
angus
reese
------
Solution 3:
edgar
duane
gauge
angus
reese
------
Solution 4:
edgar
duane
gaige
angus
reese
------
Solution 5:
river
irene
verne
ennis
reese
------
Solution 6:
clara
loren
arlis
reino
anson
------
Solution 7:
clara
loren
artis
reino
anson
------
Solution 8:
jakob
amare
kadin
orion
benny
------
Solution 9:
silas
isiah
linda
aaden
shane
------
Solution 10:
derik
emory
roger
irene
kyree
------
Solution 11:
blair
larry
arvel
irene
ryley
------
Solution 12:
blair
larry
ariel
irene
ryley
------
Solution 13:
yahir
amari
hazel
irene
riley
------
Solution 14:
ameer
merle
ernie
elias
reese
------
Solution 15:
lamar
amare
marty
artie
reyes
------
Solution 16:
abram
blane
randy
andre
meyer
------
Solution 17:
abram
boone
ronny
annie
meyer
------
Solution 18:
clair
larry
arvel
irene
ryley
------
Solution 19:
clair
larry
ariel
irene
ryley
------
Solution 20:
emery
maria
erich
ricky
yahya
------
Solution 21:
emery
maria
erich
ricki
yahir
------
Solution 22:
pearl
ellie
allan
riaan
lenny
------
Solution 23:
jamal
amare
mario
arian
leona
------
Solution 24:
jamar
amare
marty
artie
reyes
------
Solution 25:
jerad
emile
riaan
alain
denny
------
Solution 26:
amare
mikel
akeem
reese
elmer
------
Solution 27:
amare
mikel
akeem
reece
elmer
------
Solution 28:
chaim
henry
angel
irene
myles
------
Solution 29:
chaim
harry
arvel
irene
myles
------
Solution 30:
chaim
harry
ariel
irene
myles
------
Solution 31:
pablo
arlin
blane
linda
oneal
------