7 kyu

2 DNAs sequences, coding for same protein?

151 of 429nbeck

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.

Strings
Algorithms
Arrays

Stats:

CreatedSep 4, 2016
PublishedSep 4, 2016
Warriors Trained1070
Total Skips12
Total Code Submissions1613
Total Times Completed429
Ruby Completions77
Python Completions237
JavaScript Completions151
CoffeeScript Completions9
Total Stars15
% of votes with a positive feedback rating87% of 126
Total "Very Satisfied" Votes103
Total "Somewhat Satisfied" Votes14
Total "Not Satisfied" Votes9
Total Rank Assessments9
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • nbeck Avatar
  • GiacomoSorbi Avatar
  • user9644768 Avatar
  • Just4FunCoder Avatar
Ad