LeetCode --- 1185. Day of the Week 解题报告

Posted 杨鑫newlfe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeetCode --- 1185. Day of the Week 解题报告相关的知识,希望对你有一定的参考价值。

Given a date, return the corresponding day of the week for that date.

The input is given as three integers representing the daymonth and year respectively.

Return the answer as one of the following values "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday".

Example 1:

Input: day = 31, month = 8, year = 2019
Output: "Saturday"

Example 2:

Input: day = 18, month = 7, year = 1999
Output: "Sunday"

Example 3:

Input: day = 15, month = 8, year = 1993
Output: "Sunday"

Constraints:

  • The given dates are valid dates bet

以上是关于LeetCode --- 1185. Day of the Week 解题报告的主要内容,如果未能解决你的问题,请参考以下文章

1185. 一周中的第几天

LeetCode 1185. 一周中的第几天 / 913. 猫和老鼠(博弈,动态规划) / 1576. 替换所有的问号

LeetCode --- 1154. Day of the Year 解题报告

Leetcode 1154. Day of the Year

LeetCode系列1185. 一周中的第几天

LeetCode - 1185 - 一周中的第几天 - java - 细喔