Problem

Return true if year is a leap year (divisible by 4, but not by 100 unless also by 400).

Examples

  • isLeapYear(2024) -> true
  • isLeapYear(1900) -> false
  • isLeapYear(2000) -> true
Compile and test (Ctrl+Enter)