Google Nexus S Prize Puzzle #4

Today’s challenge:

Puzzle Challenge #4: Happy birthday, Google! Your days of the week are showing their natural beauty: 1943 1954 1977 1995 2013


This one is not as fun as the #1 and #2. Google’s birthday is Sep 27th. Look up this date in the 5 years listed, and get their days of the week. 1-1-2-3-5, Fibonacci sequence.

Still, one line in Ruby:

>> [1943, 1954, 1977, 1995, 2013].map{|i| Date.parse(i.to_s + ".09.27").cwday}
=> [1, 1, 2, 3, 5]

Leave a Reply