Draft

Leap year

51 of 219sunboshan

Description:

Here's the defination of leap year:

A year will be a leap year if it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100, it is not a leap year unless it is also divisible by 400.

Try to implement a method to see if a given year is leap year.

is_leap_year?(2014) # false
is_leap_year?(2000) # true
isLeapYear(2014) # false
isLeapYear(2000) # true
IsLeapYear(2014) //false
IsLeapYear(2000) //true

More By Author:

Check out these other kata created by sunboshan

Stats:

CreatedAug 25, 2015
Warriors Trained394
Total Skips17
Total Code Submissions627
Total Times Completed219
Ruby Completions51
JavaScript Completions131
C# Completions52
Total Stars1
% of votes with a positive feedback rating82% of 111
Total "Very Satisfied" Votes84
Total "Somewhat Satisfied" Votes15
Total "Not Satisfied" Votes12
Total Rank Assessments111
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • sunboshan Avatar
  • ZozoFouchtra Avatar
  • Jotha Avatar
  • kazk Avatar
Ad