diff --git a/exercises/change/README.md b/exercises/change/README.md index 14d467dfc..61fb5986c 100644 --- a/exercises/change/README.md +++ b/exercises/change/README.md @@ -6,9 +6,9 @@ that the sum of the coins' value would equal the correct amount of change. ## For example - An input of 15 with [1, 5, 10, 25, 100] should return one nickel (5) - and one dime (10) or [0, 1, 1, 0, 0] + and one dime (10) or [5, 10] - An input of 40 with [1, 5, 10, 25, 100] should return one nickel (5) - and one dime (10) and one quarter (25) or [0, 1, 1, 1, 0] + and one dime (10) and one quarter (25) or [5, 10, 25] ## Edge cases diff --git a/exercises/crypto-square/README.md b/exercises/crypto-square/README.md index 1bbc3e8cd..13cf07867 100644 --- a/exercises/crypto-square/README.md +++ b/exercises/crypto-square/README.md @@ -59,7 +59,7 @@ chunks with a single trailing space. ``` Notice that were we to stack these, we could visually decode the -cyphertext back in to the original message: +ciphertext back in to the original message: ```text "imtgdvs" diff --git a/exercises/dominoes/README.md b/exercises/dominoes/README.md index 5115b7508..b9168eebe 100644 --- a/exercises/dominoes/README.md +++ b/exercises/dominoes/README.md @@ -4,8 +4,8 @@ Make a chain of dominoes. Compute a way to order a given set of dominoes in such a way that they form a correct domino chain (the dots on one half of a stone match the dots on the -neighbouring half of an adjacent stone) and that dots on the halfs of the stones -which don't have a neighbour (the first and last stone) match each other. +neighbouring half of an adjacent stone) and that dots on the halves of the +stones which don't have a neighbour (the first and last stone) match each other. For example given the stones `[2|1]`, `[2|3]` and `[1|3]` you should compute something 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. diff --git a/exercises/hamming/README.md b/exercises/hamming/README.md index d9f7132ce..e6592d401 100644 --- a/exercises/hamming/README.md +++ b/exercises/hamming/README.md @@ -1,33 +1,20 @@ # Hamming -Calculate the Hamming difference between two DNA strands. +Calculate the Hamming Distance between two DNA strands. -A mutation is simply a mistake that occurs during the creation or -copying of a nucleic acid, in particular DNA. Because nucleic acids are -vital to cellular functions, mutations tend to cause a ripple effect -throughout the cell. Although mutations are technically mistakes, a very -rare mutation may equip the cell with a beneficial attribute. In fact, -the macro effects of evolution are attributable by the accumulated -result of beneficial microscopic mutations over many generations. +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! -The simplest and most common type of nucleic acid mutation is a point -mutation, which replaces one base with another at a single nucleotide. +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". -By counting the number of differences between two homologous DNA strands -taken from different genomes with a common ancestor, we get a measure of -the minimum number of point mutations that could have occurred on the -evolutionary path between the two strands. - -This is called the 'Hamming distance'. - -It is found by comparing two DNA strands and counting how many of the -nucleotides are different from their equivalent in the other string. +We read DNA using the letters C,A,G and T. Two strands might look like this: GAGCCTACTAACGGGAT CATCGTAATGACGGCCT ^ ^ ^ ^ ^ ^^ -The Hamming distance between these two DNA strands is 7. +They have 7 differences, and therefore the Hamming Distance is 7. + +The Hamming Distance is useful for lots of things in science, not just biology, so it's a nice phrase to be familiar with :) # Implementation notes