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.
Do you have any advice for how to handle these? I currently have my code return 0 if the end date is less than the start date or if a date is invalid (feb 30 or feb29 on a non leap year or any other bad month/day combination). But my code is still timing out on cases 3 and 4
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #19: Counting Sundays
You are viewing a single comment's thread. Return to all comments →
Do you have any advice for how to handle these? I currently have my code return 0 if the end date is less than the start date or if a date is invalid (feb 30 or feb29 on a non leap year or any other bad month/day combination). But my code is still timing out on cases 3 and 4