We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Those cases make logical sense, as both of the actual return dates occur before the expected return dates. I can't see your solution, but it sounds like there is a problem with the way you're nesting your conditional logic. You should be checking the year, then the month within the year, then the day within the month.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Library Fine
You are viewing a single comment's thread. Return to all comments →
Those cases make logical sense, as both of the actual return dates occur before the expected return dates. I can't see your solution, but it sounds like there is a problem with the way you're nesting your conditional logic. You should be checking the year, then the month within the year, then the day within the month.