Write a program that, given a DNA strand, returns its RNA complement (per RNA transcription).
Both DNA and RNA strands are a sequence of nucleotides.
The four nucleotides found in DNA are adenine (A), cytosine (C), guanine (G) and thymidine (T).
The four nucleotides found in RNA are adenine (A), cytosine (C), guanine (G) and uracil (U).
Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:
G
->C
C
->G
T
->A
A
->U
Rosalind view source
@hybridknight a little bit of duplication
@consti playing golf again ;)
@citizen428, (old-man-rant-mode-on)
on these challenges we're trying, I hope, to share best practices on how
you should write code :)
And pick up good habits to not introduce code smells. Come on guys!!!
↓↓↓
How you would write it for real?