Skip to content

Commit 3ebe221

Browse files
committed
first draft of the introduction
1 parent 012d238 commit 3ebe221

File tree

12 files changed

+75
-20
lines changed

12 files changed

+75
-20
lines changed

exercises/practice/leap/.approaches/and-or/content.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

exercises/practice/leap/.approaches/and-or/snippet.txt

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Boolean Operations Approach
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(defn leap-year? [year]
2+
(or (divides? year 400)
3+
(and (not (divides? year 100))
4+
(divides? year 4))))

exercises/practice/leap/.approaches/cond/content.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

exercises/practice/leap/.approaches/cond/snippet.txt

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Conditional Branching Approach
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(defn leap-year? [year]
2+
(if (divides? year 100)
3+
(divides? year 400)
4+
(divides? year 4)))

exercises/practice/leap/.approaches/config.json

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,19 @@
66
},
77
"approaches": [
88
{
9-
"uuid": "",
10-
"slug": "and-or",
11-
"title": "",
12-
"blurb": "",
9+
"uuid": "83290a7b-3e87-46a1-9b82-10b029716ad1",
10+
"slug": "boolean",
11+
"title": "Boolean Operations",
12+
"blurb": "Solving Leap by using boolean operations `and`, `or` and `not`.",
1313
"authors": [
1414
"michalporeba"
1515
]
1616
},
1717
{
18-
"uuid": "",
19-
"slug": "cond",
20-
"title": "",
21-
"blurb": "",
22-
"authors": [
23-
"michalporeba"
24-
]
25-
},
26-
{
27-
"uuid": "",
28-
"slug": "if",
29-
"title": "",
30-
"blurb": "",
18+
"uuid": "a1927e29-b262-4a83-a66d-0e30699e6c21",
19+
"slug": "conditional",
20+
"title": "Conditional Branching",
21+
"blurb": "Solving Leap by using conditional branching functions `if` and `cond`.",
3122
"authors": [
3223
"michalporeba"
3324
]

exercises/practice/leap/.approaches/if/content.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)