Skip to content

Commit a471e18

Browse files
authored
Merge pull request #384 from petertseng/readme
Regenerate READMEs from problem-specifications commits
2 parents d2c3ad7 + 4eed956 commit a471e18

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

exercises/dominoes/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ correct domino chain (the dots on one half of a stone match the dots on the
77
neighbouring half of an adjacent stone) and that dots on the halfs of the stones
88
which don't have a neighbour (the first and last stone) match each other.
99

10-
For example given the stones `21`, `23` and `13` you should compute something
11-
like `12 23 31` or `32 21 13` or `13 32 21` etc, where the first and last numbers are the same.
10+
For example given the stones `[2|1]`, `[2|3]` and `[1|3]` you should compute something
11+
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.
1212

13-
For stones 12, 41 and 23 the resulting chain is not valid: 41 12 23's first and last numbers are not the same. 4 != 3
13+
For stones `[1|2]`, `[4|1]` and `[2|3]` the resulting chain is not valid: `[4|1] [1|2] [2|3]`'s first and last numbers are not the same. 4 != 3
1414

1515
Some test cases may use duplicate stones in a chain solution, assume that multiple Domino sets are being used.
1616

exercises/nucleotide-count/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Given a single stranded DNA string, compute how many times each nucleotide occurs in the string.
44

5-
The genetic language of every living thing on the planet is DNA.
6-
DNA is a large molecule that is built from an extremely long sequence of individual elements called nucleotides.
5+
The genetic language of every living thing on the planet is DNA.
6+
DNA is a large molecule that is built from an extremely long sequence of individual elements called nucleotides.
77
4 types exist in DNA and these differ only slightly and can be represented as the following symbols: 'A' for adenine, 'C' for cytosine, 'G' for guanine, and 'T' thymine.
88

99
Here is an analogy:

exercises/phone-number/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The format is usually represented as
1414

1515
where `N` is any digit from 2 through 9 and `X` is any digit from 0 through 9.
1616

17-
Your task is to clean up differently formated telephone numbers by removing punctuation and the country code (1) if present.
17+
Your task is to clean up differently formatted telephone numbers by removing punctuation and the country code (1) if present.
1818

1919
For example, the inputs
2020
- `+1 (613)-995-0253`

exercises/rectangles/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,27 @@ The above diagram contains 6 rectangles:
3737
```
3838

3939
```text
40-
41-
40+
41+
4242
+--+
4343
| |
4444
+--+
4545
```
4646

4747
```text
48-
49-
48+
49+
5050
+--+
5151
| |
5252
+--+
5353
```
5454

5555
```text
56-
57-
++
58-
++
59-
60-
56+
57+
++
58+
++
59+
60+
6161
```
6262

6363
You may assume that the input is always a proper rectangle (i.e. the length of

exercises/two-bucket/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Since this mathematical problem is fairly subject to interpretation / individual
77
To help, the tests provide you with which bucket to fill first. That means, when starting with the larger bucket full, you are NOT allowed at any point to have the smaller bucket full and the larger bucket empty (aka, the opposite starting point); that would defeat the purpose of comparing both approaches!
88

99
Your program will take as input:
10-
- the size of bucket one, passed as a numeric value
11-
- the size of bucket two, passed as a numeric value
12-
- the desired number of liters to reach, passed as a numeric value
13-
- which bucket to fill first, passed as a Bucket (either Bucket::One or Bucket::Two)
10+
- the size of bucket one
11+
- the size of bucket two
12+
- the desired number of liters to reach
13+
- which bucket to fill first, either bucket one or bucket two
1414

1515
Your program should determine:
16-
- the total number of "moves" it should take to reach the desired number of liters, including the first fill - expects a numeric value
17-
- which bucket should end up with the desired number of liters (let's say this is bucket A) - expects a Bucket (either Bucket::One or Bucket::Two)
18-
- how many liters are left in the other bucket (bucket B) - expects a numeric value
16+
- the total number of "moves" it should take to reach the desired number of liters, including the first fill
17+
- which bucket should end up with the desired number of liters (let's say this is bucket A) - either bucket one or bucket two
18+
- how many liters are left in the other bucket (bucket B)
1919

2020
Note: any time a change is made to either or both buckets counts as one (1) move.
2121

0 commit comments

Comments
 (0)