Problem 2454. birthday on same day of week
Say, Mr. X's birthday is on 20th July, 2014. It was Sunday. Determine the closest year when his birthday will again be on Sunday. In this case it is, 2025.
Input is a date string representing Mr. X's birthday. Return the year as double.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers59
Suggested Problems
-
13181 Solvers
-
Remove any row in which a NaN appears
8548 Solvers
-
346 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10687 Solvers
-
1726 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!