fix(curriculum): external wiki link in JS A&DS (#46144)
* fix(curriculum): external wiki link in JS A&DS * reorder the phrasespull/46155/head
parent
9d82633a61
commit
9f73059c03
|
@ -8,11 +8,9 @@ dashedName: dna-pairing
|
|||
|
||||
# --description--
|
||||
|
||||
The DNA strand is missing the pairing element. Take each character, get its pair, and return the results as a 2d array.
|
||||
Pairs of DNA strands consist of protein base pairs. Base pairs are represented by the characters <em>AT</em> and <em>CG</em>, which form building blocks of the DNA double helix.
|
||||
|
||||
[Base pairs](http://en.wikipedia.org/wiki/Base_pair) are a pair of AT and CG. Match the missing element to the provided character.
|
||||
|
||||
Return the provided character as the first element in each array.
|
||||
The DNA strand is missing the pairing element. 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. Return the results as a 2d array.
|
||||
|
||||
For example, for the input `GCG`, return `[["G", "C"], ["C","G"], ["G", "C"]]`
|
||||
|
||||
|
|
Loading…
Reference in New Issue