Given a birth date x, find my age when my birth day will fall on the same day as I was born. So if I was born on Monday, what age will I be when my birthday once again falls on a Monday.
There can be multiple outputs of this. You need to return first occurrence.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers104
Suggested Problems
-
Get the area codes from a list of phone numbers
1072 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1995 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
560 Solvers
-
Fix the last element of a cell array
1761 Solvers
-
Calculate days until Christmas
349 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The answer for '29-Feb-1970' should probably be NaN
There is no 29th on February 1970. The solution is to count it as the 50th day of the year, but this should be stated at the problem description.