We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d22167 commit 6bb4a12Copy full SHA for 6bb4a12
src/main/java/com/fishercoder/solutions/_1118.java
@@ -1,29 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-import java.util.HashMap;
4
-import java.util.Map;
5
-
6
-/**
7
- * 1118. Number of Days in a Month
8
- *
9
- * Given a year Y and a month M, return how many days there are in that month.
10
11
- * Example 1:
12
- * Input: Y = 1992, M = 7
13
- * Output: 31
14
15
- * Example 2:
16
- * Input: Y = 2000, M = 2
17
- * Output: 29
18
19
- * Example 3:
20
- * Input: Y = 1900, M = 2
21
- * Output: 28
22
23
- * Note:
24
- * 1583 <= Y <= 2100
25
- * 1 <= M <= 12
26
- * */
27
public class _1118 {
28
public static class Solution1 {
29
public int numberOfDays(int Y, int M) {
0 commit comments