dna reverse
来源:互联网 发布:java long 类型长度 编辑:程序博客网 时间:2024/06/06 12:34
Deoxyribonucleic acid (DNA) is a chemical found in the nucleus of cells and carries the "instructions" for the development and functioning of living organisms.If you want to know more http://en.wikipedia.org/wiki/DNAIn DNA strings, symbols "A" and "T" are complements of each other, as "C" and "G". You have function with one side of the DNA (string, except for Haskell); you need to get the other complementary side. DNA strand is never empty or there is no DNA at all (again, except for Haskell).DNAStrand ("ATTGC") # return "TAACG"DNAStrand ("GTAT") # return "CATA"
代码
function DNAStrand(dna){ function switch(x){ switch (x){ case "A": return "T";break; case "T": return "A";break; case "G": return "C";break; case "C": return "G";break; } } for(var i= 0,r='',l=dna.length;i<l;i++){ r+=switch(dna[i]) } return r}
阅读全文
0 0
- dna reverse
- DNA
- DNA
- DNA
- reverse
- reverse
- Reverse
- reverse()
- 【reverse】
- reverse
- reverse
- reverse()
- reverse
- DNA-AND-DNA
- DNA Sorting(DNA排序)
- Windows DNA
- DNA 幻想
- DNA Sorting
- 集合体系
- 读取text文档中文内容乱码以及string中文编码判断
- 5、C++读取Lua中Table的内容
- JQuery.Ajax()的data参数类型(转载)
- ES6 自定义迭代器
- dna reverse
- OnClick注册事件传递参数
- RTSP再学习 -- 利用FFmpeg 将 rtsp 获取H264裸流并保存到文件中
- 6、C++修改Lua中Table的内容
- C++中访问控制与继承
- iOS
- Android设计模式-策略模式(Strategy Pattern)
- Hive部署安装
- 算法练习(13):Regular Expression Matching