Quick Overview

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.

Calculate Days Between Arbitrary Gregorian Dates

Company: Optiver

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Online Assessment

Overview: 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.

Loading…