leetle

Daily challenge for 2026-07-17

563. Leap Year Range Counter

Given two years, start and end (inclusive), return the total number of leap years within this range. A leap year is divisible by 4, but not by 100 unless it is also divisible by 400.

Example:
Input: start = 2000, end = 2004
Output: 2
Explanation: Both 2000 and 2004 are leap years.

Run this challenge interactively in Python or JavaScript when the app loads.