code.ashish.me

Atom feed

Recently added: 02 Count Of Subset Sum, 416 Partition Equal Subset Sum, 01 Subset Sum, 518 Coin Change 2, 983 Minimum Cost For Tickets

06 Leap Year

function leapYear(year){
  return (year % 4 === 0) && (year % 100 !== 0)
}

console.log(leapYear(2013))

Created 2019-11-30T02:01:21+05:18 · Edit