Calendar Day Gap
Asked at Optiver · Coding Questions · Difficulty: Easy · Last asked Jul 15, 2026
Given two calendar dates, compute how many days lie between them. Dates follow the Gregorian calendar, so you must handle months of different lengths and leap years.
Loading the problem…
More Optiver interview questions
- Best Time to Buy and Sell Stock with at Most k Transactions
- Beat the Odds — Probability Test (Optiver)
- QR Take-Home Data Project & Presentation
- Stock Transaction Sequence Counting (Catalan / DP)
- QR Technical Round — Brainteasers & Estimation
- Market-Making Interval Estimation Game