Skip to content

Commit 4f756fb

Browse files
authored
Sync exercise docs and configs (#509)
1 parent 43a6eab commit 4f756fb

File tree

15 files changed

+47
-35
lines changed

15 files changed

+47
-35
lines changed

exercises/practice/acronym/.docs/instructions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Punctuation is handled as follows: hyphens are word separators (like whitespace)
1010

1111
For example:
1212

13-
|Input|Output|
14-
|-|-|
15-
|As Soon As Possible|ASAP|
16-
|Liquid-crystal display|LCD|
17-
|Thank George It's Friday!|TGIF|
13+
| Input | Output |
14+
| ------------------------- | ------ |
15+
| As Soon As Possible | ASAP |
16+
| Liquid-crystal display | LCD |
17+
| Thank George It's Friday! | TGIF |

exercises/practice/all-your-base/.docs/instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Given a number in base **a**, represented as a sequence of digits, convert it to
1414

1515
In positional notation, a number in base **b** can be understood as a linear combination of powers of **b**.
1616

17-
The number 42, *in base 10*, means:
17+
The number 42, _in base 10_, means:
1818

1919
`(4 * 10^1) + (2 * 10^0)`
2020

21-
The number 101010, *in base 2*, means:
21+
The number 101010, _in base 2_, means:
2222

2323
`(1 * 2^5) + (0 * 2^4) + (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (0 * 2^0)`
2424

25-
The number 1120, *in base 3*, means:
25+
The number 1120, _in base 3_, means:
2626

2727
`(1 * 3^3) + (1 * 3^2) + (2 * 3^1) + (0 * 3^0)`
2828

2929
I think you got the idea!
3030

31-
*Yes. Those three numbers above are exactly the same. Congratulations!*
31+
_Yes. Those three numbers above are exactly the same. Congratulations!_
3232

3333
[positional-notation]: https://en.wikipedia.org/wiki/Positional_notation

exercises/practice/allergies/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Now, given just that score of 34, your program should be able to say:
2222
- Whether Tom is allergic to any one of those allergens listed above.
2323
- All the allergens Tom is allergic to.
2424

25-
Note: a given score may include allergens **not** listed above (i.e. allergens that score 256, 512, 1024, etc.).
25+
Note: a given score may include allergens **not** listed above (i.e. allergens that score 256, 512, 1024, etc.).
2626
Your program should ignore those components of the score.
2727
For example, if the allergy score is 257, your program should only report the eggs (1) allergy.

exercises/practice/binary-search-tree/.meta/config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
]
2121
},
2222
"blurb": "Insert and search for numbers in a binary tree.",
23-
"source": "Josh Cheek",
24-
"source_url": "https://twitter.com/josh_cheek"
23+
"source": "Josh Cheek"
2524
}

exercises/practice/binary-search/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Binary search only works when a list has been sorted.
1111

1212
The algorithm looks like this:
1313

14-
- Find the middle element of a sorted list and compare it with the item we're looking for.
14+
- Find the middle element of a _sorted_ list and compare it with the item we're looking for.
1515
- If the middle element is our item, then we're done!
1616
- If the middle element is greater than our item, we can eliminate that element and all the elements **after** it.
1717
- If the middle element is less than our item, we can eliminate that element and all the elements **before** it.

exercises/practice/bowling/.docs/instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ There are three cases for the tabulation of a frame.
2323

2424
Here is a three frame example:
2525

26-
| Frame 1 | Frame 2 | Frame 3 |
27-
| :-------------: |:-------------:| :---------------------:|
28-
| X (strike) | 5/ (spare) | 9 0 (open frame) |
26+
| Frame 1 | Frame 2 | Frame 3 |
27+
| :--------: | :--------: | :--------------: |
28+
| X (strike) | 5/ (spare) | 9 0 (open frame) |
2929

3030
Frame 1 is (10 + 5 + 5) = 20
3131

@@ -36,7 +36,7 @@ Frame 3 is (9 + 0) = 9
3636
This means the current running total is 48.
3737

3838
The tenth frame in the game is a special case.
39-
If someone throws a strike or a spare then they get a fill ball.
39+
If someone throws a spare or a strike then they get one or two fill balls respectively.
4040
Fill balls exist to calculate the total of the 10th frame.
4141
Scoring a strike or spare on the fill ball does not give the player more fill balls.
4242
The total value of the 10th frame is the total number of pins knocked down.

exercises/practice/etl/.meta/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"etl.mli"
2727
]
2828
},
29-
"blurb": "We are going to do the `Transform` step of an Extract-Transform-Load.",
30-
"source": "Exercise by the JumpstartLab team for students at The Turing School of Software and Design.",
29+
"blurb": "Change the data format for scoring a game to more easily add other languages.",
30+
"source": "Based on an exercise by the JumpstartLab team for students at The Turing School of Software and Design.",
3131
"source_url": "https://turing.edu"
3232
}

exercises/practice/hello-world/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"hello_world.mli"
2727
]
2828
},
29-
"blurb": "The classical introductory exercise. Just say \"Hello, World!\".",
29+
"blurb": "Exercism's classic introductory exercise. Just say \"Hello, World!\".",
3030
"source": "This is an exercise to introduce users to using Exercism",
3131
"source_url": "https://en.wikipedia.org/wiki/%22Hello,_world!%22_program"
3232
}

exercises/practice/list-ops/.docs/instructions.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ Implement a series of basic list operations, without using existing functions.
77

88
The precise number and names of the operations to be implemented will be track dependent to avoid conflicts with existing names, but the general operations you will implement include:
99

10-
- `append` (*given two lists, add all items in the second list to the end of the first list*);
11-
- `concatenate` (*given a series of lists, combine all items in all lists into one flattened list*);
12-
- `filter` (*given a predicate and a list, return the list of all items for which `predicate(item)` is True*);
13-
- `length` (*given a list, return the total number of items within it*);
14-
- `map` (*given a function and a list, return the list of the results of applying `function(item)` on all items*);
15-
- `foldl` (*given a function, a list, and initial accumulator, fold (reduce) each item into the accumulator from the left using `function(accumulator, item)`*);
16-
- `foldr` (*given a function, a list, and an initial accumulator, fold (reduce) each item into the accumulator from the right using `function(item, accumulator)`*);
17-
- `reverse` (*given a list, return a list with all the original items, but in reversed order*);
10+
- `append` (_given two lists, add all items in the second list to the end of the first list_);
11+
- `concatenate` (_given a series of lists, combine all items in all lists into one flattened list_);
12+
- `filter` (_given a predicate and a list, return the list of all items for which `predicate(item)` is True_);
13+
- `length` (_given a list, return the total number of items within it_);
14+
- `map` (_given a function and a list, return the list of the results of applying `function(item)` on all items_);
15+
- `foldl` (_given a function, a list, and initial accumulator, fold (reduce) each item into the accumulator from the left_);
16+
- `foldr` (_given a function, a list, and an initial accumulator, fold (reduce) each item into the accumulator from the right_);
17+
- `reverse` (_given a list, return a list with all the original items, but in reversed order_).
18+
19+
Note, the ordering in which arguments are passed to the fold functions (`foldl`, `foldr`) is significant.

exercises/practice/meetup/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
},
2828
"blurb": "Calculate the date of meetups.",
2929
"source": "Jeremy Hinegardner mentioned a Boulder meetup that happens on the Wednesteenth of every month",
30-
"source_url": "https://twitter.com/copiousfreetime"
30+
"source_url": "http://www.copiousfreetime.org/"
3131
}

0 commit comments

Comments
 (0)