7 kyu
Leap Years
14,440 of 41,582BattleRattle
Description:
In this kata you should simply determine, whether a given year is a leap year or not. In case you don't know the rules, here they are:
- Years divisible by 4 are leap years,
- but years divisible by 100 are not leap years,
- but years divisible by 400 are leap years.
Tested years are in range 1600 ≤ year ≤ 4000
.
Date Time
Algorithms
Similar Kata:
Stats:
Created | Oct 27, 2013 |
Published | Oct 27, 2013 |
Warriors Trained | 60595 |
Total Skips | 2082 |
Total Code Submissions | 123933 |
Total Times Completed | 41582 |
JavaScript Completions | 14440 |
CoffeeScript Completions | 152 |
C# Completions | 3274 |
Python Completions | 11120 |
Ruby Completions | 534 |
Haskell Completions | 230 |
C Completions | 1540 |
Kotlin Completions | 1285 |
Groovy Completions | 137 |
C++ Completions | 2628 |
NASM Completions | 60 |
Rust Completions | 645 |
PHP Completions | 845 |
Scala Completions | 149 |
Julia Completions | 43 |
COBOL Completions | 23 |
TypeScript Completions | 724 |
Swift Completions | 575 |
Java Completions | 2378 |
Go Completions | 732 |
OCaml Completions | 81 |
Crystal Completions | 14 |
F# Completions | 36 |
Clojure Completions | 38 |
CFML Completions | 10 |
CommonLisp Completions | 80 |
Dart Completions | 401 |
Shell Completions | 154 |
Lua Completions | 116 |
Elixir Completions | 57 |
R Completions | 88 |
Objective-C Completions | 18 |
RISC-V Completions | 26 |
Racket Completions | 29 |
Elm Completions | 12 |
Perl Completions | 40 |
Nim Completions | 14 |
PowerShell Completions | 90 |
VB Completions | 69 |
Haxe Completions | 9 |
D Completions | 12 |
Erlang Completions | 24 |
Raku Completions | 9 |
Reason Completions | 7 |
Fortran Completions | 18 |
Pascal Completions | 37 |
PureScript Completions | 14 |
Factor Completions | 10 |
Forth Completions | 22 |
SQL Completions | 1282 |
Prolog Completions | 18 |
Total Stars | 301 |
% of votes with a positive feedback rating | 90% of 3032 |
Total "Very Satisfied" Votes | 2484 |
Total "Somewhat Satisfied" Votes | 471 |
Total "Not Satisfied" Votes | 77 |