Skip to content

Commit 7904493

Browse files
sync exercises (#320)
[no important files changed]
1 parent 35090ba commit 7904493

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

exercises/practice/intergalactic-transmission/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Your job is to help implement
77

88
A parity bit is simple way of detecting transmission errors.
99
The transmitters and receivers can only transmit and receive _exactly_ eight bits at a time (including the parity bit).
10-
The parity bit is set so that there is an _even_ number 1s in each transmission and is always the first bit from the right.
10+
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.
1111
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.
1212

1313
However, messages are rarely this short, and need to be transmitted in a sequence when they are longer.
@@ -40,7 +40,7 @@ Their parity bits are set to 1 so that they have an even number of 1 bits in the
4040
They are transmitted as `01110001` and `00011011` (or `71` and `1B` in hex).
4141

4242
The last transmission (`1110`) has only four bits of data.
43-
Since exactly eight bits are transmitted at a time and the parity bit is the right most bit, three 0 bits and then the parity bit are added to make up eight bits.
43+
Since exactly eight bits are transmitted at a time and the parity bit is the rightmost bit, three 0 bits and then the parity bit are added to make up eight bits.
4444
It now looks like this (where `_` is the parity bit):
4545

4646
```text

exercises/practice/luhn/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If the sum is evenly divisible by 10, the original number is valid.
4141

4242
### Invalid Canadian SIN
4343

44-
The number to be checked is `066 123 468`.
44+
The number to be checked is `066 123 478`.
4545

4646
We start at the end of the number and double every second digit, beginning with the second digit from the right and moving left.
4747

exercises/practice/reverse-string/.meta/tests.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ description = "a palindrome"
2626

2727
[b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c]
2828
description = "an even-sized word"
29+
30+
[1bed0f8a-13b0-4bd3-9d59-3d0593326fa2]
31+
description = "wide characters"
32+
include = false
33+
34+
[93d7e1b8-f60f-4f3c-9559-4056e10d2ead]
35+
description = "grapheme cluster with pre-combined form"
36+
include = false
37+
38+
[1028b2c1-6763-4459-8540-2da47ca512d9]
39+
description = "grapheme clusters"
40+
include = false

0 commit comments

Comments
 (0)