统计碱基序列中ATCG出现的个数

统计碱基序列中ATCG出现的个数统计碱基序列中 ATCG 出现的个数 题目 Given A DNA string s of length at most 1000 nt Return Four integers separated by spaces counting the respective number of times that the symbols A C G and

大家好,我是讯享网,很高兴认识大家。

统计碱基序列中ATCG出现的个数

题目

Given: A DNA string “s” of length at most 1000 nt.

Return: Four integers (separated by spaces) counting the respective number of times that the symbols ‘A’, ‘C’, ‘G’, and ‘T’ occur in “s”.

Example input:
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC


讯享网

Should output:
20 12 17 21

小讯
上一篇 2025-01-07 12:39
下一篇 2025-03-22 07:20

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/30763.html