Editorial for Wesley's Anger Contest 2 Problem 1 - OCT 31 = DEC 25?


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: wleung_bvg

We can observe that the day of the week that Halloween is on is always the day after Christmas, regardless of the year. We can implement this with a series of if statements, or use an array of strings and modular arithmetic.

Time Complexity: \mathcal{O}(1)


Comments

There are no comments at the moment.