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.
I can't pass test cases #2, #3, #4, they give wrong answer. My code is efficient and I can't seem to break it with the usual problems. I support big numbers, I invert dates, include the date from the test case, and for invalid dates I tried both advancing them to the next month and giving 0 as output. For example:
Project Euler #19: Counting Sundays
You are viewing a single comment's thread. Return to all comments →
https://www.hackerrank.com/contests/projecteuler/challenges/euler019/submissions/code/1302949095
I can't pass test cases #2, #3, #4, they give wrong answer. My code is efficient and I can't seem to break it with the usual problems. I support big numbers, I invert dates, include the date from the test case, and for invalid dates I tried both advancing them to the next month and giving 0 as output. For example:
output: