Skip to content

Commit 5891ab7

Browse files
fix build
1 parent 25f9fbc commit 5891ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static class Solution1 {
2222
public int daysBetweenDates(String date1, String date2) {
2323
String[] strings1 = date1.split("-");
2424
String[] strings2 = date2.split("-");
25-
return Math.abs(julianDay(Integer.parseInt(strings1[0]), Integer.parseInt(strings1[1]), Integer.parseInt(strings1[2])) -
26-
julianDay(Integer.parseInt(strings2[0]), Integer.parseInt(strings2[1]), Integer.parseInt(strings2[2])));
25+
return Math.abs(julianDay(Integer.parseInt(strings1[0]), Integer.parseInt(strings1[1]), Integer.parseInt(strings1[2]))
26+
- julianDay(Integer.parseInt(strings2[0]), Integer.parseInt(strings2[1]), Integer.parseInt(strings2[2])));
2727
}
2828

2929
public int julianDay(int year, int month, int day) {

0 commit comments

Comments
 (0)