Hello,
I am facing an issue understanding this test.
Best Regards
George
function pairElement(str) {
return str;
}
pairElement("GCG");
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Challenge: DNA Pairing
Link to the challenge:
What do you not understand? Reading this, it isn’t well explained at all, but:
C pairs with G
A pairs with T
So
You have a string, “GCG”.
“G” pairs with “C”
“C” pairs with “G”
“G” pairs with “C”
Output should be [["G", "C"], ["C", "G"], ["G", "C"]]
It’s asking you to split a string into an array, mapping each character to an array with the correct pairing
system
Closed
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.