7 kyu
DNA GC-content
460 of 952nbeck
Description:
The four bases found in DNA are adenine (A), cytosine (C), guanine (G) and thymine (T).
In genetics, GC-content is the percentage of Guanine (G) and Cytosine (C) bases on a DNA molecule that are either guanine or cytosine.
Given a DNA sequence (a string) return the GC-content in percent.
For more information about GC-content you can take a look to wikipedia GC-content.
For example: the GC-content of the following DNA sequence is 50%: "AAATTTCCCGGG".
Note: You can take a look to my others bio-info kata here
Strings
Algorithms
Similar Kata:
Stats:
Created | May 27, 2016 |
Published | May 27, 2016 |
Warriors Trained | 1431 |
Total Skips | 13 |
Total Code Submissions | 3226 |
Total Times Completed | 952 |
Ruby Completions | 116 |
JavaScript Completions | 359 |
Haskell Completions | 88 |
Python Completions | 460 |
Crystal Completions | 14 |
CoffeeScript Completions | 13 |
Total Stars | 23 |
% of votes with a positive feedback rating | 89% of 179 |
Total "Very Satisfied" Votes | 142 |
Total "Somewhat Satisfied" Votes | 33 |
Total "Not Satisfied" Votes | 4 |