Skip to content

Instantly share code, notes, and snippets.

@bioball
Created April 20, 2015 16:46
Show Gist options
  • Save bioball/420f62877dcf502b7de5 to your computer and use it in GitHub Desktop.
Save bioball/420f62877dcf502b7de5 to your computer and use it in GitHub Desktop.
Cheryl's birthday
1. Albert knows the date, but not the month. Otherwise, he wouldn't know for sure that Bernard also doesn't know Cheryl's birthday. There are two dates in there that's unique.
2. Since Bernard knows it's not a unique date, he knows it's not June 18th nor May 19th
3. If you take out those two months, there's only one month left that only occurs once. Since Bernard now knows the month for sure, we know it's in June.
Conclusion: Cheryl's birthday is on June 17th
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment