2 DNAs sequences, coding for same protein?
Description:
In genetics 2 differents DNAs sequences can code for the same protein.
This is due to the redundancy of the genetic code, in fact 2 different tri-nucleotide can code for the same amino-acid. For example the tri-nucleotide 'TTT' and the tri-nucleotide 'TTC' both code for the amino-acid 'F'. For more information you can take a look here.
Your goal in this kata is to define if two differents DNAs sequences code for exactly the same protein. Your function take the 2 sequences you should compare. For some kind of simplicity here the sequences will respect the following rules:
- It is a full protein sequence beginning with a Start codon and finishing by an Stop codon
- It will only contain valid tri-nucleotide.
The translation hash is available for you under a translation hash $codons
[Ruby] or codons
[Python and JavaScript].
To better understand this kata you can take a look at this one, it can help you to start.
Similar Kata:
Stats:
Created | Sep 4, 2016 |
Published | Sep 4, 2016 |
Warriors Trained | 1070 |
Total Skips | 12 |
Total Code Submissions | 1613 |
Total Times Completed | 429 |
Ruby Completions | 77 |
Python Completions | 237 |
JavaScript Completions | 151 |
CoffeeScript Completions | 9 |
Total Stars | 15 |
% of votes with a positive feedback rating | 87% of 126 |
Total "Very Satisfied" Votes | 103 |
Total "Somewhat Satisfied" Votes | 14 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |