Skip to content

Commit 6bb4a12

Browse files
refactor 1118
1 parent 8d22167 commit 6bb4a12

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/main/java/com/fishercoder/solutions/_1118.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
package com.fishercoder.solutions;
22

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-
* */
273
public class _1118 {
284
public static class Solution1 {
295
public int numberOfDays(int Y, int M) {

0 commit comments

Comments
 (0)