Skip to content

Commit b9253ca

Browse files
leap: sync (exercism#167)
* Sync the `leap` exercise's docs with the latest data. * Sync the `leap` exercise's metadata with the latest data.
1 parent ae6439f commit b9253ca

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed
+1-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
11
# Instructions
22

3-
Given a year, report if it is a leap year.
4-
5-
The tricky thing here is that a leap year in the Gregorian calendar occurs:
6-
7-
```text
8-
on every year that is evenly divisible by 4
9-
except every year that is evenly divisible by 100
10-
unless the year is also evenly divisible by 400
11-
```
12-
13-
For example, 1997 is not a leap year, but 1996 is.
14-
1900 is not a leap year, but 2000 is.
15-
16-
## Notes
17-
18-
Though our exercise adopts some very simple rules, there is more to learn!
19-
20-
For a delightful, four minute explanation of the whole leap year phenomenon, go watch [this youtube video][video].
21-
22-
[video]: https://www.youtube.com/watch?v=xX96xng7sAE
3+
Your task is to determine whether a given year is a leap year.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Introduction
2+
3+
A leap year (in the Gregorian calendar) occurs:
4+
5+
- In every year that is evenly divisible by 4.
6+
- Unless the year is evenly divisible by 100, in which case it's only a leap year if the year is also evenly divisible by 400.
7+
8+
Some examples:
9+
10+
- 1997 was not a leap year as it's not divisible by 4.
11+
- 1900 was not a leap year as it's not divisible by 400.
12+
- 2000 was a leap year!
13+
14+
~~~~exercism/note
15+
For a delightful, four-minute explanation of the whole phenomenon of leap years, check out [this YouTube video](https://www.youtube.com/watch?v=xX96xng7sAE).
16+
~~~~

exercises/practice/leap/.meta/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
".meta/proof.ci.wren"
1414
]
1515
},
16-
"blurb": "Given a year, report if it is a leap year.",
16+
"blurb": "Determine whether a given year is a leap year.",
1717
"source": "CodeRanch Cattle Drive, Assignment 3",
1818
"source_url": "https://coderanch.com/t/718816/Leap"
1919
}

0 commit comments

Comments
 (0)