Hacker News new | past | comments | ask | show | jobs | submit login

Here's a program that solves this type of logic problem. It works on both "Cheryl's Birthday" and "Teacher's Birthday".

Just replace the initialization dates with the ones from the problem.

Cheryl's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=4

Teacher's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: