6 kyu
Most Frequent Weekdays
1,468 of 3,650suic
Description:
What is your favourite day of the week? Check if it's the most frequent day of the week in the year.
You are given a year as integer (e. g. 2001). You should return the most frequent day(s) of the week in that year. The result has to be a list of days sorted by the order of days in week (e. g. ['Monday', 'Tuesday']
, ['Saturday', 'Sunday']
, ['Monday', 'Sunday']
). Week starts with Monday.
Input: Year as an int.
Output: The list of most frequent days sorted by the order of days in week (from Monday to Sunday).
Preconditions:
- Week starts on Monday.
- Year is between 1583 and 4000.
- Calendar is Gregorian.
Examples (input -> output):
* 2427 -> ['Friday']
* 2185 -> ['Saturday']
* 2860 -> ['Thursday', 'Friday']
Fundamentals
Similar Kata:
Stats:
Created | Mar 17, 2016 |
Published | Mar 17, 2016 |
Warriors Trained | 11684 |
Total Skips | 1208 |
Total Code Submissions | 17518 |
Total Times Completed | 3650 |
Python Completions | 1468 |
Ruby Completions | 193 |
JavaScript Completions | 973 |
C# Completions | 326 |
Scala Completions | 71 |
Java Completions | 327 |
Groovy Completions | 26 |
F# Completions | 22 |
CoffeeScript Completions | 6 |
VB Completions | 25 |
Go Completions | 116 |
TypeScript Completions | 94 |
Haskell Completions | 20 |
Raku Completions | 12 |
Rust Completions | 64 |
COBOL Completions | 2 |
C Completions | 18 |
Total Stars | 251 |
% of votes with a positive feedback rating | 90% of 599 |
Total "Very Satisfied" Votes | 495 |
Total "Somewhat Satisfied" Votes | 88 |
Total "Not Satisfied" Votes | 16 |