JAVA_LeetCode 1154_Day of the Year 풀이 import java.time.LocalDate; class Solution { public int dayOfYear(String date) { return LocalDate.parse(date).getDayOfYear(); } } * 출처 https://leetcode.com/problems/day-of-the-year Day of the Year - LeetCode Can you solve this real interview question? Day of the Year - Given a string date representing a Gregorian calendar [https://en.wikipedia.org/wiki/Gregorian_calendar] date formatted as YYYY-MM-DD, return the day number of the year. Example 1: Input: date...
#JAVA
#JAVA_DayoftheYear
#JAVA_LeetCode1154
#JAVA_LeetCode1154_DayoftheYear
#LeetCode1154_DayoftheYear
원문링크 : JAVA_LeetCode 1154_Day of the Year