Day of the Year Problem
Day of the Year Problem — ExecCode Easy DSA Practice
Solve the Day of the Year problem on ExecCode. Free online easy DSA practice in Math. Write and run code in Java, C++, Python — no signup required to run.
Description Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year. Examples Example 1 Input: date = "2019-01-09" Output: 9 Explanation: Given date is the 9th day of the year in 2019. Example 2 Input: date = "2019-02…
Practice Day of the Year free on ExecCode. Browse more ExecCode DSA problems.