Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit011fed0

Browse files
refactor 1360
1 parentb8030b0 commit011fed0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

‎src/main/java/com/fishercoder/solutions/_1360.java

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

3-
/**
4-
* 1360. Number of Days Between Two Dates
5-
*
6-
* Write a program to count the number of days between two dates.
7-
* The two dates are given as strings, their format is YYYY-MM-DD as shown in the examples.
8-
*
9-
* Example 1:
10-
* Input: date1 = "2019-06-29", date2 = "2019-06-30"
11-
* Output: 1
12-
*
13-
* Example 2:
14-
* Input: date1 = "2020-01-15", date2 = "2019-12-31"
15-
* Output: 15
16-
*
17-
* Constraints:
18-
* The given dates are valid dates between the years 1971 and 2100.
19-
* */
203
publicclass_1360 {
214
publicstaticclassSolution1 {
225
publicintdaysBetweenDates(Stringdate1,Stringdate2) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp