Calculate Days Between Arbitrary Gregorian Dates
Company: Optiver
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: Calculate the absolute number of days between arbitrary valid Gregorian dates without enumerating each day or relying on a limited date library. Account for century and four-hundred-year leap rules across very large positive years.