Implement PatternToNumber solved by 363

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.