From b90dc67b6e30aaf099e5ba49ca7d3affcb361863 Mon Sep 17 00:00:00 2001 From: Anastasios Chatzialexiou <16361161+tasxatzial@users.noreply.github.com> Date: Sat, 30 Nov 2024 16:42:25 +0200 Subject: [PATCH] hamming: Split into introduction and instructions --- exercises/hamming/description.md | 27 --------------------------- exercises/hamming/introduction.md | 12 ++++++++++++ exercises/hamming/intructions.md | 16 ++++++++++++++++ 3 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 exercises/hamming/description.md create mode 100644 exercises/hamming/introduction.md create mode 100644 exercises/hamming/intructions.md diff --git a/exercises/hamming/description.md b/exercises/hamming/description.md deleted file mode 100644 index 361fb36d1..000000000 --- a/exercises/hamming/description.md +++ /dev/null @@ -1,27 +0,0 @@ -# Description - -Calculate the Hamming distance between two DNA strands. - -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! - -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". - -We read DNA using the letters C, A, G and T. -Two strands might look like this: - - GAGCCTACTAACGGGAT - CATCGTAATGACGGCCT - ^ ^ ^ ^ ^ ^^ - -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 - -The Hamming distance is only defined for sequences of equal length, so an attempt to calculate it between sequences of different lengths should not work. diff --git a/exercises/hamming/introduction.md b/exercises/hamming/introduction.md new file mode 100644 index 000000000..8419bf479 --- /dev/null +++ b/exercises/hamming/introduction.md @@ -0,0 +1,12 @@ +# Introduction + +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! + +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". + +The Hamming distance is useful in many areas of science, not just biology, so it's a nice phrase to be familiar with :) diff --git a/exercises/hamming/intructions.md b/exercises/hamming/intructions.md new file mode 100644 index 000000000..8f47a179e --- /dev/null +++ b/exercises/hamming/intructions.md @@ -0,0 +1,16 @@ +# Instructions + +Calculate the Hamming distance between two DNA strands. + +We read DNA using the letters C, A, G and T. +Two strands might look like this: + + GAGCCTACTAACGGGAT + CATCGTAATGACGGCCT + ^ ^ ^ ^ ^ ^^ + +They have 7 differences, and therefore the Hamming distance is 7. + +## Implementation notes + +The Hamming distance is only defined for sequences of equal length, so an attempt to calculate it between sequences of different lengths should not work.