What is your favorite day of the week? Check if it's the most frequent day of the week in the year.
You are given a year as an integer (e.g. 2001). You should return the most frequent day(s) of the week in that year.
Input: Year as an int.
Output: The list of most frequent days in the Gregorian calendar year.
Examples:
most_frequent_days(2427)
== ['Friday']
most_frequent_days(2185)
== ['Saturday']
most_frequent_days(2860)
== ['Thursday', 'Friday']
Tests:
most_frequent_days(1770)
most_frequent_days(1785)
most_frequent_days(1984)
most_frequent_days(2000)
Good luck!
This challenge comes from suic on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!