diff --git a/exercises/practice/affine-cipher/.docs/instructions.md b/exercises/practice/affine-cipher/.docs/instructions.md index 1603dbbc..bc890882 100644 --- a/exercises/practice/affine-cipher/.docs/instructions.md +++ b/exercises/practice/affine-cipher/.docs/instructions.md @@ -13,12 +13,12 @@ Although all monoalphabetic ciphers are weak, the affine cipher is much stronger The encryption function is: ```text -E(x) = (ai + b) mod m +E(x) = (ax + b) mod m ``` Where: -- `i` is the letter's index from `0` to the length of the alphabet - 1. +- `x` is the letter's index from `0` to the length of the alphabet - 1. - `m` is the length of the alphabet. For the Latin alphabet `m` is `26`. - `a` and `b` are integers which make up the encryption key. diff --git a/exercises/practice/collatz-conjecture/.docs/introduction.md b/exercises/practice/collatz-conjecture/.docs/introduction.md index c35bdeb6..4009942a 100644 --- a/exercises/practice/collatz-conjecture/.docs/introduction.md +++ b/exercises/practice/collatz-conjecture/.docs/introduction.md @@ -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/ diff --git a/exercises/practice/dnd-character/.docs/instructions.md b/exercises/practice/dnd-character/.docs/instructions.md index e14e7949..05803757 100644 --- a/exercises/practice/dnd-character/.docs/instructions.md +++ b/exercises/practice/dnd-character/.docs/instructions.md @@ -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. diff --git a/exercises/practice/intergalactic-transmission/.docs/instructions.md b/exercises/practice/intergalactic-transmission/.docs/instructions.md index 54970881..458636c6 100644 --- a/exercises/practice/intergalactic-transmission/.docs/instructions.md +++ b/exercises/practice/intergalactic-transmission/.docs/instructions.md @@ -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. diff --git a/exercises/practice/list-ops/.docs/instructions.md b/exercises/practice/list-ops/.docs/instructions.md index ebc5dffe..f5022032 100644 --- a/exercises/practice/list-ops/.docs/instructions.md +++ b/exercises/practice/list-ops/.docs/instructions.md @@ -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_). diff --git a/exercises/practice/ocr-numbers/.docs/instructions.md b/exercises/practice/ocr-numbers/.docs/instructions.md index 8a391ce4..ea40a4ec 100644 --- a/exercises/practice/ocr-numbers/.docs/instructions.md +++ b/exercises/practice/ocr-numbers/.docs/instructions.md @@ -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 (`" "`). @@ -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"`. diff --git a/exercises/practice/pascals-triangle/.docs/instructions.md b/exercises/practice/pascals-triangle/.docs/instructions.md index 0f58f006..4fa88553 100644 --- a/exercises/practice/pascals-triangle/.docs/instructions.md +++ b/exercises/practice/pascals-triangle/.docs/instructions.md @@ -30,6 +30,6 @@ The leftmost and rightmost values have only one preceding position to consider, With the topmost value being `1`, it follows from this that all the leftmost and rightmost values are also `1`. The other values all have two positions to consider. -For example, the fifth row's (`1 4 6 4 1`) middle value is `6`, as the values to its left and right in the preceding row are `3` and `3`: +For example, the fifth row's (`1 4 6 4 1`) middle value is `6`, as the values to its left and right in the preceding row are `3` and `3`. [wikipedia]: https://en.wikipedia.org/wiki/Pascal%27s_triangle diff --git a/exercises/practice/pascals-triangle/.docs/introduction.md b/exercises/practice/pascals-triangle/.docs/introduction.md index eab454e5..c2bc6f5d 100644 --- a/exercises/practice/pascals-triangle/.docs/introduction.md +++ b/exercises/practice/pascals-triangle/.docs/introduction.md @@ -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! diff --git a/exercises/practice/pig-latin/.docs/instructions.md b/exercises/practice/pig-latin/.docs/instructions.md index a9645ac2..4ee60a75 100644 --- a/exercises/practice/pig-latin/.docs/instructions.md +++ b/exercises/practice/pig-latin/.docs/instructions.md @@ -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: diff --git a/exercises/practice/rational-numbers/.docs/instructions.md b/exercises/practice/rational-numbers/.docs/instructions.md index f64fc0f2..35edbd0b 100644 --- a/exercises/practice/rational-numbers/.docs/instructions.md +++ b/exercises/practice/rational-numbers/.docs/instructions.md @@ -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. diff --git a/exercises/practice/resistor-color-trio/.docs/instructions.md b/exercises/practice/resistor-color-trio/.docs/instructions.md index 1ac5cf5e..8ef11628 100644 --- a/exercises/practice/resistor-color-trio/.docs/instructions.md +++ b/exercises/practice/resistor-color-trio/.docs/instructions.md @@ -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 diff --git a/exercises/practice/roman-numerals/.docs/instructions.md b/exercises/practice/roman-numerals/.docs/instructions.md index 50e2f5bf..fe28f4d9 100644 --- a/exercises/practice/roman-numerals/.docs/instructions.md +++ b/exercises/practice/roman-numerals/.docs/instructions.md @@ -1,4 +1,4 @@ -# Introduction +# Instructions Your task is to convert a number from Arabic numerals to Roman numerals. diff --git a/exercises/practice/roman-numerals/.docs/introduction.md b/exercises/practice/roman-numerals/.docs/introduction.md index 6fd942fe..06f484fe 100644 --- a/exercises/practice/roman-numerals/.docs/introduction.md +++ b/exercises/practice/roman-numerals/.docs/introduction.md @@ -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. diff --git a/exercises/practice/satellite/.docs/instructions.md b/exercises/practice/satellite/.docs/instructions.md index fbbf14f4..99baaed0 100644 --- a/exercises/practice/satellite/.docs/instructions.md +++ b/exercises/practice/satellite/.docs/instructions.md @@ -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 diff --git a/exercises/practice/sieve/.docs/instructions.md b/exercises/practice/sieve/.docs/instructions.md index 71292e17..4b0f47d4 100644 --- a/exercises/practice/sieve/.docs/instructions.md +++ b/exercises/practice/sieve/.docs/instructions.md @@ -4,7 +4,7 @@ Your task is to create a program that implements the Sieve of Eratosthenes algor A prime number is a number larger than 1 that is only divisible by 1 and itself. For example, 2, 3, 5, 7, 11, and 13 are prime numbers. -By contrast, 6 is _not_ a prime number as it not only divisible by 1 and itself, but also by 2 and 3. +By contrast, 6 is _not_ a prime number as it is not only divisible by 1 and itself, but also by 2 and 3. To use the Sieve of Eratosthenes, first, write out all the numbers from 2 up to and including your given number. Then, follow these steps: diff --git a/exercises/practice/simple-cipher/.docs/instructions.md b/exercises/practice/simple-cipher/.docs/instructions.md index afd0b57d..460f8761 100644 --- a/exercises/practice/simple-cipher/.docs/instructions.md +++ b/exercises/practice/simple-cipher/.docs/instructions.md @@ -10,7 +10,7 @@ The unencrypted string is called the _plaintext_ and the encrypted string is cal Converting plaintext to ciphertext is called _encoding_ while the reverse is called _decoding_. In a _substitution cipher_, each plaintext letter is replaced with a ciphertext letter which is computed with the help of a _key_. -(Note, it is possible for replacement letter to be the same as the original letter.) +(Note, it is possible for the replacement letter to be the same as the original letter.) ## Encoding details