From 1f2b7a1d4117e854ede1defba84022d2205dd3b1 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Wed, 25 Nov 2026 16:47:29 -0800 Subject: [PATCH] Sync all the recent doc changes --- exercises/practice/affine-cipher/.docs/instructions.md | 4 ++-- exercises/practice/book-store/.docs/instructions.md | 2 +- exercises/practice/collatz-conjecture/.docs/introduction.md | 2 +- exercises/practice/dnd-character/.docs/instructions.md | 4 ++-- exercises/practice/list-ops/.docs/instructions.md | 2 +- exercises/practice/ocr-numbers/.docs/instructions.md | 4 ++-- exercises/practice/pascals-triangle/.docs/instructions.md | 2 +- exercises/practice/pascals-triangle/.docs/introduction.md | 2 +- exercises/practice/pig-latin/.docs/instructions.md | 4 ++-- exercises/practice/resistor-color-trio/.docs/instructions.md | 2 +- exercises/practice/roman-numerals/.docs/instructions.md | 2 +- exercises/practice/roman-numerals/.docs/introduction.md | 2 +- exercises/practice/sieve/.docs/instructions.md | 2 +- exercises/practice/simple-cipher/.docs/instructions.md | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/exercises/practice/affine-cipher/.docs/instructions.md b/exercises/practice/affine-cipher/.docs/instructions.md index 1603dbbce9..bc890882d3 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/book-store/.docs/instructions.md b/exercises/practice/book-store/.docs/instructions.md index 54403f17bf..30c3f05687 100644 --- a/exercises/practice/book-store/.docs/instructions.md +++ b/exercises/practice/book-store/.docs/instructions.md @@ -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: diff --git a/exercises/practice/collatz-conjecture/.docs/introduction.md b/exercises/practice/collatz-conjecture/.docs/introduction.md index c35bdeb67d..4009942af0 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 e14e7949d6..058037575c 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/list-ops/.docs/instructions.md b/exercises/practice/list-ops/.docs/instructions.md index ebc5dffed0..f5022032b6 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 8a391ce4f6..ea40a4ecd3 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 0f58f00696..4fa8855382 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 eab454e5a6..c2bc6f5d21 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 a9645ac236..4ee60a75d1 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/resistor-color-trio/.docs/instructions.md b/exercises/practice/resistor-color-trio/.docs/instructions.md index 1ac5cf5e9f..8ef11628e0 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 50e2f5bf1c..fe28f4d99a 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 6fd942fef3..06f484fe38 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/sieve/.docs/instructions.md b/exercises/practice/sieve/.docs/instructions.md index 71292e1782..4b0f47d4fa 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 afd0b57da9..460f8761e9 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