What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-23 21:31:03
Intermediate Algorithm Scripting: DNA Pairing
function pairElement(str) { //define a map object with all pair possibilities var map = {T:'A', A:'T', G:'C', C:'G'}; //split str into a char Array strArr = str.split(''); //replace each Array item with a 2d Array using map for (var i=0;i<... Add solution