3 ms·
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 w
by primaryobjects 11y ago
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 http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=4
Teacher's Birthday
http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5 http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5