I know nothing about DNA, and I’m a high school dropout due to personal reasons (I’m considering earning an equivalent in my country). I suspect this is the reason why I don’t even understand what I’m supposed to do in this lesson.
The lesson states
Pairs of DNA strands consist of nucleobase pairs. Base pairs are represented by the characters AT and CG, which form building blocks of the DNA double helix.
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"]]
The character and its pair are paired up in an array, and all the arrays are grouped into one encapsulating array.
I don’t even understand what this means, nor do I even understand what I’m supposed to try to achieve. All other questions on this lesson I’ve seen in this forum seem to be from people who understand what they’re supposed to do, they just don’t know how. But I don’t even know what I’m supposed to do to begin with! Can someone please guide me in the right direction and fill the required gaps in my knowledge of DNA?
Thanks in advance!