PracHub
QuestionsCoachesLearningGuidesInterview Prep

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.

  • medium
  • Optiver
  • Coding & Algorithms
  • Software Engineer

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.

Last updated: Jul 18, 2026
Loading…
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Maintain Price Levels For A Single-Symbol Order Book - Optiver (medium)
  • Build and Validate a Binary Tree from Parent-Child Pairs - Optiver (medium)
  • Days Between Two Calendar Dates - Optiver (medium)
  • Thread-Safe Stock Inventory: Buy and Sell Without Overselling - Optiver (medium)