Problem 2524. weekday and month
Given a year and a weekday, determine how many months of that year had five of those weekdays. It is kind of easy to find.
Example:
y = 2014
d = 'Sun'
result = 4
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers47
Suggested Problems
-
Swap the first and last columns
20437 Solvers
-
1242 Solvers
-
119 Solvers
-
The Answer to Life, the Universe, and Everything
528 Solvers
-
Spot the First Occurrence of 5
418 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!