summaryrefslogtreecommitdiff
path: root/rust/leap/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2024-07-17 21:36:17 +0200
committerDimitri Sokolyuk <sokolyuk@gmail.com>2024-07-17 21:36:17 +0200
commit431a0b397afaa132473fd1f4c0197dd1c1cb7d9c (patch)
tree6be89729e01db607f4e431750899bfcddf71b3c3 /rust/leap/README.md
parentc6178ed800c5aadd9da2063ff7d68e36db9b64e5 (diff)
Add leap yearHEADmaster
Diffstat (limited to 'rust/leap/README.md')
-rw-r--r--rust/leap/README.md68
1 files changed, 68 insertions, 0 deletions
diff --git a/rust/leap/README.md b/rust/leap/README.md
new file mode 100644
index 0000000..16fc3b3
--- /dev/null
+++ b/rust/leap/README.md
@@ -0,0 +1,68 @@
+# Leap
+
+Welcome to Leap on Exercism's Rust Track.
+If you need help running the tests or submitting your code, check out `HELP.md`.
+
+## Introduction
+
+A leap year (in the Gregorian calendar) occurs:
+
+- In every year that is evenly divisible by 4.
+- 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.
+
+Some examples:
+
+- 1997 was not a leap year as it's not divisible by 4.
+- 1900 was not a leap year as it's not divisible by 400.
+- 2000 was a leap year!
+
+~~~~exercism/note
+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).
+~~~~
+
+## Instructions
+
+Your task is to determine whether a given year is a leap year.
+
+You may use the [`arithmetic remainder` operator](https://doc.rust-lang.org/book/appendix-02-operators.html) to test for divisibility.
+
+## Source
+
+### Created by
+
+- @EduardoBautista
+
+### Contributed to by
+
+- @andrewclarkson
+- @andy5995
+- @ashleygwilliams
+- @ClashTheBunny
+- @coriolinus
+- @cwhakes
+- @darnuria
+- @EduardoBautista
+- @efx
+- @Emerentius
+- @ErikSchierboom
+- @hunger
+- @IanWhitney
+- @JIghtuse
+- @jonasbn
+- @kytrinyx
+- @leoyvens
+- @lutostag
+- @mkantor
+- @navossoc
+- @nfiles
+- @petertseng
+- @pminten
+- @rofrol
+- @sshine
+- @stringparser
+- @xakon
+- @ZapAnton
+
+### Based on
+
+CodeRanch Cattle Drive, Assignment 3 - https://coderanch.com/t/718816/Leap \ No newline at end of file