Skip to content

Commit 22526c2

Browse files
authored
Merge pull request exercism#1604 from lemoncurry/update-readme-via-configlet
Update README.md via configlet
2 parents cf29e04 + 3b74da9 commit 22526c2

9 files changed

Lines changed: 28 additions & 35 deletions

File tree

‎exercises/bob/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ anything.
1313

1414
He answers 'Whatever.' to anything else.
1515

16+
Bob's conversational partner is a purist when it comes to written communication and always follows normal rules regarding sentence punctuation in English.
17+
1618
# Java Tips
1719

1820
Since this exercise has difficulty 5 it doesn't come with any starter implementation.

‎exercises/change/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ that the sum of the coins' value would equal the correct amount of change.
66
## For example
77

88
- An input of 15 with [1, 5, 10, 25, 100] should return one nickel (5)
9-
and one dime (10) or [0, 1, 1, 0, 0]
9+
and one dime (10) or [5, 10]
1010
- An input of 40 with [1, 5, 10, 25, 100] should return one nickel (5)
11-
and one dime (10) and one quarter (25) or [0, 1, 1, 1, 0]
11+
and one dime (10) and one quarter (25) or [5, 10, 25]
1212

1313
## Edge cases
1414

‎exercises/complex-numbers/README.md‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ The reciprocal of a non-zero complex number is
1919
Dividing a complex number `a + i * b` by another `c + i * d` gives:
2020
`(a + i * b) / (c + i * d) = (a * c + b * d)/(c^2 + d^2) + (b * c - a * d)/(c^2 + d^2) * i`.
2121

22-
Exponent of a complex number can be expressed as
23-
`exp(a + i * b) = exp(a) * exp(i * b)`,
24-
and the last term is given by Euler's formula `exp(i * b) = cos(b) + i * sin(b)`.
25-
22+
Raising e to a complex exponent can be expressed as `e^(a + i * b) = e^a * e^(i * b)`, the last term of which is given by Euler's formula `e^(i * b) = cos(b) + i * sin(b)`.
2623

2724
Implement the following operations:
2825
- addition, subtraction, multiplication and division of two complex numbers,

‎exercises/crypto-square/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ chunks with a single trailing space.
5959
```
6060

6161
Notice that were we to stack these, we could visually decode the
62-
cyphertext back in to the original message:
62+
ciphertext back in to the original message:
6363

6464
```text
6565
"imtgdvs"

‎exercises/dominoes/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Make a chain of dominoes.
44

55
Compute a way to order a given set of dominoes in such a way that they form a
66
correct domino chain (the dots on one half of a stone match the dots on the
7-
neighbouring half of an adjacent stone) and that dots on the halfs of the stones
8-
which don't have a neighbour (the first and last stone) match each other.
7+
neighbouring half of an adjacent stone) and that dots on the halves of the
8+
stones which don't have a neighbour (the first and last stone) match each other.
99

1010
For example given the stones `[2|1]`, `[2|3]` and `[1|3]` you should compute something
1111
like `[1|2] [2|3] [3|1]` or `[3|2] [2|1] [1|3]` or `[1|3] [3|2] [2|1]` etc, where the first and last numbers are the same.

‎exercises/hamming/README.md‎

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
# Hamming
22

3-
Calculate the Hamming difference between two DNA strands.
3+
Calculate the Hamming Distance between two DNA strands.
44

5-
A mutation is simply a mistake that occurs during the creation or
6-
copying of a nucleic acid, in particular DNA. Because nucleic acids are
7-
vital to cellular functions, mutations tend to cause a ripple effect
8-
throughout the cell. Although mutations are technically mistakes, a very
9-
rare mutation may equip the cell with a beneficial attribute. In fact,
10-
the macro effects of evolution are attributable by the accumulated
11-
result of beneficial microscopic mutations over many generations.
5+
Your body is made up of cells that contain DNA. Those cells regularly wear out and need replacing, which they achieve by dividing into daughter cells. In fact, the average human body experiences about 10 quadrillion cell divisions in a lifetime!
126

13-
The simplest and most common type of nucleic acid mutation is a point
14-
mutation, which replaces one base with another at a single nucleotide.
7+
When cells divide, their DNA replicates too. Sometimes during this process mistakes happen and single pieces of DNA get encoded with the incorrect information. If we compare two strands of DNA and count the differences between them we can see how many mistakes occurred. This is known as the "Hamming Distance".
158

16-
By counting the number of differences between two homologous DNA strands
17-
taken from different genomes with a common ancestor, we get a measure of
18-
the minimum number of point mutations that could have occurred on the
19-
evolutionary path between the two strands.
20-
21-
This is called the 'Hamming distance'.
22-
23-
It is found by comparing two DNA strands and counting how many of the
24-
nucleotides are different from their equivalent in the other string.
9+
We read DNA using the letters C,A,G and T. Two strands might look like this:
2510

2611
GAGCCTACTAACGGGAT
2712
CATCGTAATGACGGCCT
2813
^ ^ ^ ^ ^ ^^
2914

30-
The Hamming distance between these two DNA strands is 7.
15+
They have 7 differences, and therefore the Hamming Distance is 7.
16+
17+
The Hamming Distance is useful for lots of things in science, not just biology, so it's a nice phrase to be familiar with :)
3118

3219
# Implementation notes
3320

34-
The Hamming distance is only defined for sequences of equal length. This means
35-
that based on the definition, each language could deal with getting sequences
36-
of equal length differently.
21+
The Hamming distance is only defined for sequences of equal length, so
22+
an attempt to calculate it between sequences of different lengths should
23+
not work. The general handling of this situation (e.g., raising an
24+
exception vs returning a special value) may differ between languages.
3725

3826
# Java Tips
3927

‎exercises/pythagorean-triplet/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ which,
77
a**2 + b**2 = c**2
88
```
99

10+
and such that,
11+
12+
```text
13+
a < b < c
14+
```
15+
1016
For example,
1117

1218
```text

‎exercises/simple-cipher/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ for A, and so with the others."
1313

1414
Ciphers are very straight-forward algorithms that allow us to render
1515
text less readable while still allowing easy deciphering. They are
16-
vulnerable to many forms of cryptoanalysis, but we are lucky that
17-
generally our little sisters are not cryptoanalysts.
16+
vulnerable to many forms of cryptanalysis, but we are lucky that
17+
generally our little sisters are not cryptanalysts.
1818

1919
The Caesar Cipher was used for some messages from Julius Caesar that
2020
were sent afield. Now Caesar knew that the cipher wasn't very good, but

‎exercises/two-fer/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ in your terminal.
6969

7070
## Source
7171

72-
[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
72+
[https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757)
7373

7474
## Submitting Incomplete Solutions
7575

0 commit comments

Comments
 (0)