According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of such a date. Given a date string ('dd/mm/yyyy'), return the next occurence of a Friday the 13th. If the date string is already a Friday the 13th, return the original string. Output should be in the form of a date string ('dd/mm/yyyy').
Example: date = '13/09/2013', nextfri13(date) = '13/09'2013'; date = '15/12/2013', nextfri13(date) = '13/06/2014';
And so on. Good luck!
1313 Solvers
157 Solvers
I've got the power! (Inspired by Project Euler problem 29)
75 Solvers
The Answer to Life, the Universe, and Everything
312 Solvers
Generate a random matrix A of (1,-1)
161 Solvers
Solution 320266
Ahh European dates!
It makes more sense. Just like the metric system :)
Actually, the unambiguously correct way to write dates is yyyy/mm/dd, because more significant digits always go to the left. This also allows a simple ASCII sort to sort them correctly.