一、原题【8Kyu】
原题链接Training on DNA to RNA Conversion | Codewars
Deoxyribonucleic acid, DNA is the primary information storage molecule in biological systems. It is composed of four nucleic acid bases Guanine ('G'), Cytosine ('C'), Adenine ('A'), and Thymine ('T'). Ribonucleic acid, RNA, is the primary messenger molecule in cells. RNA differs slightly from DNA its chemical structure and contains no Thymine. In RNA Thymine is replaced by another nucleic acid Uracil ('U'). Create a function which translates a given DNA string into RNA |
RRNNAAssaansaAs
二、解题
1、读题
题意为:DNA由G、C、A、T构成,对应RNA由G、C、A、U构