Skip to content

Commit 8704883

Browse files
refactor: improve description of DNA Pair Generator (freeCodeCamp#62393)
1 parent 517b9f0 commit 8704883

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

curriculum/challenges/english/blocks/lab-dna-pair-generator/afd15382cdfb22c9efe8b7de.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,24 @@ dashedName: implement-a-dna-pair-generator
77

88
# --description--
99

10-
Pairs of DNA strands consist of nucleobase pairs. Base pairs are represented by the characters <em>AT</em> and <em>CG</em>, which form building blocks of the DNA double helix.
10+
In the double helix of the DNA, the bases are always paired together: if on one strand there is an <em>A</em> base, on the other strand directly in front there is a <em>T</em> base, the other pair is <em>C</em> and <em>G</em>.
1111

1212
In this lab, you will write a function to match the missing base pairs for the provided DNA strand. For each character in the provided string, find the base pair character.
1313

14-
For example, for the input `GCG`, return `[["G", "C"], ["C", "G"], ["G", "C"]]`
14+
For example, for the input `ATCG`, return `[["A", "T"], ["T", "A"], ["C", "G"], ["G", "C"]]`
1515

16-
The character and its pair are paired up in an array, and all the arrays are grouped into one encapsulating array.
16+
The <em>A</em> base gets paired with a <em>T</em> base, the <em>T</em> base is paired with a <em>A</em> base, the <em>C</em> is paired with the <em>G</em> base, and finally the <em>G</em> base is paired with a <em>C</em> base.
1717

1818
**Objective**: Fulfill the user stories below and get all the tests to pass to complete the lab.
1919

2020
**User Stories:**
2121

22-
1. You should have a `pairElement` function that takes a string as an argument.
23-
1. The `pairElement` function should return a 2d array.
22+
1. You should have a `pairElement` function that takes a string of any length as an argument.
23+
1. The `pairElement` function should return a 2d array, where each inner array has two strings inside, the first string is one base from the input, and the second string the paired base.
2424
1. When given `A`, the function should pair it with `T`.
2525
1. When given `T`, the function should pair it with `A`.
2626
1. When given `C`, the function should pair it with `G`.
2727
1. When given `G`, the function should pair it with `C`.
28-
1. Each pair should be returned as an array with the original character first and its complement second.
2928

3029
# --hints--
3130

0 commit comments

Comments
 (0)