Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/affine-cipher/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"exercise": "affine-cipher",
"comments": [
"The test are divided into two groups: ",
"The tests are divided into two groups: ",
"* Encoding from English to affine cipher",
"* Decoding from affine cipher to all-lowercase-mashed-together English"
],
Expand Down
2 changes: 1 addition & 1 deletion exercises/baffling-birthdays/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"comments": [
"Dates are formatted as 'YYYY-MM-DD'.",
"",
"To increase the likelihood of consistent result, the tests should run the code returning random results many times.",
"To increase the likelihood of consistent results, the tests should run the code returning random results many times.",
"",
"The expected probability values should be compared using some tolerance to allow for small deviations."
],
Expand Down
2 changes: 1 addition & 1 deletion exercises/bank-account/metadata.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
title = "Bank Account"
blurb = "Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions!"
blurb = "Simulate a bank account supporting opening/closing, withdrawals, and deposits of money. Watch out for concurrent transactions!"
2 changes: 1 addition & 1 deletion exercises/book-store/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For example, how much does this basket of books cost?

One way of grouping these 8 books is:

- 1 group of 5 (1st, 2nd,3rd, 4th, 5th)
- 1 group of 5 (1st, 2nd, 3rd, 4th, 5th)
- 1 group of 3 (1st, 2nd, 3rd)

This would give a total of:
Expand Down
2 changes: 1 addition & 1 deletion exercises/collatz-conjecture/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Yet, the conjecture claims that no matter the starting number, we'll always end
It was fascinating, but also puzzling.
Why does this always seem to work?
Could there be a number where the process breaks down, looping forever or escaping into infinity?
The notebook suggested solving this could reveal something profound — and with it, fame, [fortune][collatz-prize], and a place in history awaits whoever could unlock its secrets.
The notebook suggested solving this could reveal something profound — and with it, fame, [fortune][collatz-prize], and a place in history await whoever could unlock its secrets.

[collatz-prize]: https://mathprize.net/posts/collatz-conjecture/
4 changes: 2 additions & 2 deletions exercises/dnd-character/instructions.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Instructions

For a game of [Dungeons & Dragons][dnd], each player starts by generating a character they can play with.
This character has, among other things, six abilities; strength, dexterity, constitution, intelligence, wisdom and charisma.
This character has, among other things, six abilities: strength, dexterity, constitution, intelligence, wisdom and charisma.
These six abilities have scores that are determined randomly.
You do this by rolling four 6-sided dice and recording the sum of the largest three dice.
You do this six times, once for each ability.

Your character's initial hitpoints are 10 + your character's constitution modifier.
You find your character's constitution modifier by subtracting 10 from your character's constitution, divide by 2 and round down.
To find your character's constitution modifier, subtract 10 from your character's constitution, divide by 2 and round down.

Write a random character generator that follows the above rules.

Expand Down
2 changes: 1 addition & 1 deletion exercises/dot-dsl/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A simple graph looks like this:
a -- b [color="green"]
}

Putting this in a file `example.dot` and running `dot example.dot -T png -o example.png` creates an image `example.png` with red and blue circle connected by a green line on a yellow background.
Putting this in a file `example.dot` and running `dot example.dot -T png -o example.png` creates an image `example.png` with a red and a blue circle connected by a green line on a yellow background.

Write a Domain Specific Language similar to the Graphviz dot language.

Expand Down
2 changes: 1 addition & 1 deletion exercises/etl/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Transforms a set of legacy Lexiconia data stored as letters per score",
"to a set of data stored score per letter.",
"Note: The expected input data for these tests should have",
"integer keys (not stringified numbers as shown in the JSON below",
"integer keys (not stringified numbers as shown in the JSON below)",
"Unless the language prohibits that, please implement these tests",
"such that keys are integers. e.g. in JavaScript, it might look ",
"like `transform( { 1: ['A'] } );`"
Expand Down
2 changes: 1 addition & 1 deletion exercises/high-scores/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"exercise": "high-scores",
"comments": [
"Consider adding a track specific recommendation in the track's hint.md.",
"Consider linking to a explanatory blogpost or beginner level tutorials for both topics.",
"Consider linking to an explanatory blog post or beginner level tutorials for both topics.",
"See Ruby Track hint.md for an example."
],
"cases": [
Expand Down
2 changes: 1 addition & 1 deletion exercises/intergalactic-transmission/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Your job is to help implement
- the transmitter, which calculates the transmission sequence, and
- the receiver, which decodes it.

A parity bit is simple way of detecting transmission errors.
A parity bit is a simple way of detecting transmission errors.
The transmitters and receivers can only transmit and receive _exactly_ eight bits at a time (including the parity bit).
The parity bit is set so that there is an _even_ number of 1 bits in each transmission, and the parity bit is always the first bit from the right.
So if the receiver receives `11000001`, `01110101` or `01000000` (i.e. a transmission with an odd number of 1 bits), it knows there is an error.
Expand Down
2 changes: 1 addition & 1 deletion exercises/intergalactic-transmission/metadata.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title = "Intergalactic Transmission"
blurb = "Add parity bits to a message for transmission"
blurb = "Add parity bits to a message for transmission."
source = "Kah Goh"
source_url = "https://github.com/exercism/problem-specifications/pull/2543"
6 changes: 3 additions & 3 deletions exercises/killer-sudoku-helper/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ In a 3-digit cage with a sum of 7, there is only one valid combination: 124.

![Sudoku grid, with three killer cages that are marked as grouped together.
The first killer cage is in the 3×3 box in the top left corner of the grid.
The middle column of that box forms the cage, with the followings cells from top to bottom: first cell contains a 1 and a pencil mark of 7, indicating a cage sum of 7, second cell contains a 2, third cell contains a 5.
The middle column of that box forms the cage, with the following cells from top to bottom: first cell contains a 1 and a pencil mark of 7, indicating a cage sum of 7, second cell contains a 2, third cell contains a 5.
The numbers are highlighted in red to indicate a mistake.
The second killer cage is in the central 3×3 box of the grid.
The middle column of that box forms the cage, with the followings cells from top to bottom: first cell contains a 1 and a pencil mark of 7, indicating a cage sum of 7, second cell contains a 2, third cell contains a 4.
The middle column of that box forms the cage, with the following cells from top to bottom: first cell contains a 1 and a pencil mark of 7, indicating a cage sum of 7, second cell contains a 2, third cell contains a 4.
None of the numbers in this cage are highlighted and therefore don't contain any mistakes.
The third killer cage follows the outside corner of the central 3×3 box of the grid.
It is made up of the following three cells: the top left cell of the cage contains a 2, highlighted in red, and a cage sum of 7.
Expand All @@ -42,7 +42,7 @@ In a 2-digit cage with a sum 10, there are 4 possible combinations:
- 46

![Sudoku grid, all squares empty except for the middle column, column 5, which has 8 rows filled.
Each continguous two rows form a killer cage and are marked as grouped together.
Each contiguous two rows form a killer cage and are marked as grouped together.
From top to bottom: first group is a cell with value 1 and a pencil mark indicating a cage sum of 10, cell with value 9.
Second group is a cell with value 2 and a pencil mark of 10, cell with value 8.
Third group is a cell with value 3 and a pencil mark of 10, cell with value 7.
Expand Down
2 changes: 1 addition & 1 deletion exercises/killer-sudoku-helper/metadata.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title = "Killer Sudoku Helper"
blurb = "Write a tool that makes it easier to solve Killer Sudokus"
blurb = "Write a tool that makes it easier to solve Killer Sudokus."
source = "Created by Sascha Mann, Jeremy Walker, and BethanyG for the Julia track on Exercism."
source_url = "https://github.com/exercism/julia/pull/413"
2 changes: 1 addition & 1 deletion exercises/list-ops/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The precise number and names of the operations to be implemented will be track d
- `filter` (_given a predicate and a list, return the list of all items for which `predicate(item)` is True_);
- `length` (_given a list, return the total number of items within it_);
- `map` (_given a function and a list, return the list of the results of applying `function(item)` on all items_);
- `foldl` (_given a function, a list, and initial accumulator, fold (reduce) each item into the accumulator from the left_);
- `foldl` (_given a function, a list, and an initial accumulator, fold (reduce) each item into the accumulator from the left_);
- `foldr` (_given a function, a list, and an initial accumulator, fold (reduce) each item into the accumulator from the right_);
- `reverse` (_given a list, return a list with all the original items, but in reversed order_).

Expand Down
4 changes: 2 additions & 2 deletions exercises/luhn/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"uuid": "39a06a5a-5bad-4e0f-b215-b042d46209b1",
"description": "using ascii value for non-doubled non-digit isn't allowed",
"comments": [
"Convert non-digits to their ascii values and then offset them by 48 sometimes accidentally declare an invalid string to be valid.",
"Converting non-digits to their ASCII values and then offsetting them by 48 sometimes accidentally declares an invalid string to be valid.",
"This test is designed to avoid that solution."
],
"property": "valid",
Expand All @@ -192,7 +192,7 @@
"uuid": "f94cf191-a62f-4868-bc72-7253114aa157",
"description": "using ascii value for doubled non-digit isn't allowed",
"comments": [
"Convert non-digits to their ascii values and then offset them by 48 sometimes accidentally declare an invalid string to be valid.",
"Converting non-digits to their ASCII values and then offsetting them by 48 sometimes accidentally declares an invalid string to be valid.",
"This test is designed to avoid that solution."
],
"property": "valid",
Expand Down
4 changes: 2 additions & 2 deletions exercises/ocr-numbers/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Optical Character Recognition or OCR is software that converts images of text in
Given a grid of characters representing some digits, convert the grid to a string of digits.
If the grid has multiple rows of cells, the rows should be separated in the output with a `","`.

- The grid is made of one of more lines of cells.
- The grid is made of one or more lines of cells.
- Each line of the grid is made of one or more cells.
- Each cell is three columns wide and four rows high (3x4) and represents one digit.
- Digits are drawn using pipes (`"|"`), underscores (`"_"`), and spaces (`" "`).
Expand All @@ -22,7 +22,7 @@ The following input (without the comments) is converted to `"1234567890"`.
_ _ _ _ _ _ _ _ #
| _| _||_||_ |_ ||_||_|| | # Decimal numbers.
||_ _| | _||_| ||_| _||_| #
# The fourth line is always blank,
# The fourth line is always blank.
```

The following input is converted to `"123,456,789"`.
Expand Down
2 changes: 1 addition & 1 deletion exercises/pascals-triangle/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Introduction

With the weather being great, you're not looking forward to spending an hour in a classroom.
Annoyed, you enter the class room, where you notice a strangely satisfying triangle shape on the blackboard.
Annoyed, you enter the classroom, where you notice a strangely satisfying triangle shape on the blackboard.
Whilst waiting for your math teacher to arrive, you can't help but notice some patterns in the triangle: the outer values are all ones, each subsequent row has one more value than its previous row and the triangle is symmetrical.
Weird!

Expand Down
2 changes: 1 addition & 1 deletion exercises/piecing-it-together/metadata.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title = "Piecing It Together"
blurb = "Fill in missing jigsaw puzzle details from partial data"
blurb = "Fill in missing jigsaw puzzle details from partial data."
source = "atk just started another 1000-pieces jigsaw puzzle when this idea hit him"
source_url = "https://github.com/exercism/problem-specifications/pull/2554"
4 changes: 2 additions & 2 deletions exercises/pig-latin/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@
"reimplements": "44616581-5ce3-4a81-82d0-40c7ab13d2cf",
"description": "a whole phrase",
"comments": [
"Adds a variety of word types to test phrase",
"so that phrase contain words of different types",
"Adds a variety of word types to the test phrase",
"so that the phrase contains words of different types",
"",
"(unlike the original test, in which a phrase",
"contains only words starting with consonants)"
Expand Down
4 changes: 2 additions & 2 deletions exercises/pig-latin/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ If a word starts with zero or more consonants followed by `"qu"`, first move tho
For example:

- `"quick"` -> `"ickqu"` -> `"ickquay"` (starts with `"qu"`, no preceding consonants)
- `"square"` -> `"aresqu"` -> `"aresquay"` (starts with one consonant followed by `"qu`")
- `"square"` -> `"aresqu"` -> `"aresquay"` (starts with one consonant followed by `"qu"`)

## Rule 4

If a word starts with one or more consonants followed by `"y"`, first move the consonants preceding the `"y"`to the end of the word, and then add an `"ay"` sound to the end of the word.
If a word starts with one or more consonants followed by `"y"`, first move the consonants preceding the `"y"` to the end of the word, and then add an `"ay"` sound to the end of the word.

Some examples:

Expand Down
4 changes: 2 additions & 2 deletions exercises/pov/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ So for example the path from 6-9 (which in the first tree goes up to the root an

This exercise involves taking an input tree and re-orientating it from the point of view of one of the nodes.

[wiki-graph]: https://en.wikipedia.org/wiki/Tree_(graph_theory)
[wiki-tree]: https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)
[wiki-graph]: https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)
[wiki-tree]: https://en.wikipedia.org/wiki/Tree_(graph_theory)
2 changes: 1 addition & 1 deletion exercises/rational-numbers/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ To reduce a rational number `r = a/b`, divide `a` and `b` by the greatest common
So, for example, `gcd(12, 8) = 4`, so `r = 12/8` can be reduced to `(12/4)/(8/4) = 3/2`.
The reduced form of a rational number should be in "standard form" (the denominator should always be a positive integer).
If a denominator with a negative integer is present, multiply both numerator and denominator by `-1` to ensure standard form is reached.
For example, `3/-4` should be reduced to `-3/4`
For example, `3/-4` should be reduced to `-3/4`.

Assume that the programming language you are using does not have an implementation of rational numbers.
2 changes: 1 addition & 1 deletion exercises/resistor-color-trio/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For this exercise, you need to know only three things about them:
- Each band acts as a digit of a number.
For example, if they printed a brown band (value 1) followed by a green band (value 5), it would translate to the number 15.
In this exercise, you are going to create a helpful program so that you don't have to remember the values of the bands.
The program will take 3 colors as input, and outputs the correct value, in ohms.
The program will take 3 colors as input, and output the correct value, in ohms.
The color bands are encoded as follows:

- black: 0
Expand Down
2 changes: 1 addition & 1 deletion exercises/rest-api/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Your task is to implement a simple [RESTful API][restful-wikipedia] that receive

| Description | HTTP Method | URL | Payload Format | Response w/o Payload | Response w/ Payload |
| ------------------------ | ----------- | ------ | ------------------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------------------------- |
| List of user information | GET | /users | `{"users":["Adam","Bob"]}` | `{"users":<List of all User objects>}` | `{"users":<List of User objects for <users> (sorted by name)}` |
| List of user information | GET | /users | `{"users":["Adam","Bob"]}` | `{"users":<List of all User objects>}` | `{"users":<List of User objects for <users> (sorted by name)>}` |
| Create user | POST | /add | `{"user":<name of new user (unique)>}` | N/A | `<User object for new user>` |
| Create IOU | POST | /iou | `{"lender":<name of lender>,"borrower":<name of borrower>,"amount":5.25}` | N/A | `{"users":<updated User objects for <lender> and <borrower> (sorted by name)>}` |

Expand Down
10 changes: 5 additions & 5 deletions exercises/roman-numerals/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"uuid": "6d1d82d5-bf3e-48af-9139-87d7165ed509",
"description": "16 is XVI",
"comments": [
"16 has exactly one occurence of all symbols whose value is less than 50 (L) in decreasing order"
"16 has exactly one occurrence of all symbols whose value is less than 50 (L) in decreasing order"
],
"property": "roman",
"input": {
Expand Down Expand Up @@ -123,7 +123,7 @@
"uuid": "4465ffd5-34dc-44f3-ada5-56f5007b6dad",
"description": "66 is LXVI",
"comments": [
"66 has exactly one occurence of all symbols whose value is less than 100 (C) in decreasing order"
"66 has exactly one occurrence of all symbols whose value is less than 100 (C) in decreasing order"
],
"property": "roman",
"input": {
Expand Down Expand Up @@ -164,7 +164,7 @@
"uuid": "902ad132-0b4d-40e3-8597-ba5ed611dd8d",
"description": "166 is CLXVI",
"comments": [
"166 has exactly one occurence of all symbols whose value is less than 500 (D) in decreasing order"
"166 has exactly one occurrence of all symbols whose value is less than 500 (D) in decreasing order"
],
"property": "roman",
"input": {
Expand Down Expand Up @@ -195,7 +195,7 @@
"uuid": "dacb84b9-ea1c-4a61-acbb-ce6b36674906",
"description": "666 is DCLXVI",
"comments": [
"666 has exactly one occurence of all symbols whose value is less than 1000 (M) in decreasing order"
"666 has exactly one occurrence of all symbols whose value is less than 1000 (M) in decreasing order"
],
"property": "roman",
"input": {
Expand Down Expand Up @@ -226,7 +226,7 @@
"uuid": "efbe1d6a-9f98-4eb5-82bc-72753e3ac328",
"description": "1666 is MDCLXVI",
"comments": [
"1666 has exactly one occurence of all symbols in decreasing order"
"1666 has exactly one occurrence of all symbols in decreasing order"
],
"property": "roman",
"input": {
Expand Down
2 changes: 1 addition & 1 deletion exercises/roman-numerals/instructions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Introduction
# Instructions

Your task is to convert a number from Arabic numerals to Roman numerals.

Expand Down
2 changes: 1 addition & 1 deletion exercises/roman-numerals/introduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Description
# Introduction

Today, most people in the world use Arabic numerals (0–9).
But if you travelled back two thousand years, you'd find that most Europeans were using Roman numerals instead.
Expand Down
2 changes: 1 addition & 1 deletion exercises/saddle-points/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"description": "Can identify saddle points in a non square matrix",
"comments": [
"If your tests depend on the order of the saddle points,",
"note that this case breaks the sorting convention used in other cases (row ascending, column ascencding),",
"note that this case breaks the sorting convention used in other cases (row ascending, column ascending),",
"so you might want to swap the two points in the expected output."
],
"property": "saddlePoints",
Expand Down
2 changes: 1 addition & 1 deletion exercises/satellite/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An in-order traversal reads the left subtree in-order then the current node and
So in order from left to right.

For example the pre-order traversal of this tree is [a, i, x, f, r].
The in-order traversal of this tree is [i, a, f, x, r]
The in-order traversal of this tree is [i, a, f, x, r].

```text
a
Expand Down
Loading
Loading