Problem 2025. Find the day for a date
Solution Stats
Problem Comments
-
3 Comments
I think the 22/10/1901 was a Tuesday... :-/
http://www.infoplease.com/calendar.php?month=10&year=1901&submit=Go
Its not like using datestr and solving this. You need to calculate the days and divide it by 7, take the reminder and increment that many days to present day.
Problem statement would be much better with an additional sentence:
"Solve the problem in the hypothetical world where 16 April 2019 happens on Saturday instead of Tuesday."
Otherwise this is just lame.
Solution Comments
Show commentsProblem Recent Solvers56
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3059 Solvers
-
Back to basics 22 - Rotate a matrix
932 Solvers
-
Set some matrix elements to zero
620 Solvers
-
Unique values without using UNIQUE function
438 Solvers
-
Convert given decimal number to binary number.
2267 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!