Problem
1360. Number of Days Between Two Dates
Java
Origin-based algorithm
© Algorithms for calculating the difference of dates in days - 4. Origin-based Algorithm
1 | class Solution { |
Submission Detail
- 105 / 105 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Number of Days Between Two Dates.
- Memory Usage: 37.1 MB, less than 71.69% of Java online submissions for Number of Days Between Two Dates.
jdk
1 | import java.time.LocalDate; |
Submission Detail
- 105 / 105 test cases passed.
- Runtime: 14 ms, faster than 13.23% of Java online submissions for Number of Days Between Two Dates.
- Memory Usage: 38.4 MB, less than 21.16% of Java online submissions for Number of Days Between Two Dates.