* fix: broken Read-search-ask link now point to correct url * fix: changed link to original forum link with more views * fix: changed http links to correct version * fix: link in help modal
2.6 KiB
2.6 KiB
id, title, isRequired, challengeType, videoUrl, localeTitle
id | title | isRequired | challengeType | videoUrl | localeTitle |
---|---|---|---|---|---|
afd15382cdfb22c9efe8b7de | DNA Pairing | true | 5 | DNA配对 |
Description
Instructions
Tests
tests:
- text: '<code>pairElement("ATCGA")</code>应返回<code>[["A","T"],["T","A"],["C","G"],["G","C"],["A","T"]]</code> 。'
testString: 'assert.deepEqual(pairElement("ATCGA"),[["A","T"],["T","A"],["C","G"],["G","C"],["A","T"]], "<code>pairElement("ATCGA")</code> should return <code>[["A","T"],["T","A"],["C","G"],["G","C"],["A","T"]]</code>.");'
- text: '<code>pairElement("TTGAG")</code>应返回<code>[["T","A"],["T","A"],["G","C"],["A","T"],["G","C"]]</code> 。'
testString: 'assert.deepEqual(pairElement("TTGAG"),[["T","A"],["T","A"],["G","C"],["A","T"],["G","C"]], "<code>pairElement("TTGAG")</code> should return <code>[["T","A"],["T","A"],["G","C"],["A","T"],["G","C"]]</code>.");'
- text: '<code>pairElement("CTCTA")</code>应返回<code>[["C","G"],["T","A"],["C","G"],["T","A"],["A","T"]]</code> 。'
testString: 'assert.deepEqual(pairElement("CTCTA"),[["C","G"],["T","A"],["C","G"],["T","A"],["A","T"]], "<code>pairElement("CTCTA")</code> should return <code>[["C","G"],["T","A"],["C","G"],["T","A"],["A","T"]]</code>.");'
Challenge Seed
function pairElement(str) {
return str;
}
pairElement("GCG");
Solution
// solution required