How to Win at NPR
- listen to the Sunday Puzzle
- Search for one of the many baby name sites. I used this one
- Copy the boys names
- Open
irb
and type some stuff:
nn = %w(
# paste the boys names here...
)
hh = {}
nn.each {|n| last5 = n[1..-1]; hh[last5] ||= []; hh[last5] << n }.length
hh.select {|k,v| v.length == 3 }.values.each {|v| puts v.join(', ') }
- Then comb through the sets of names, extracting the ones that fit the criteria
(two names starting with a consonant, one name starting with a vowel)
The best solution I found: Auston, Huston, Juston