Implement PatternToNumber solved by 1554

July 29, 2015, 1:07 a.m. by Rosalind Team

Implement PatternToNumber

Convert a DNA string to a number.

Given: A DNA string Pattern.

Return: PatternToNumber(Pattern).

Sample Dataset

AGT

Sample Output

11

Extra Dataset

Please login to solve this problem.