两条序列中,相同位置但碱基不同的个数
题目
Given two strings “s” and “t” of equal length, the Hamming distance between “s” and “t” is the number of corresponding symbols that differ in “s” and “t”.
Given: Two DNA strings “s” and “t” of equal length (not exceeding 1 kbp).
Return: The Hamming distance between “s” and “t”.
Example input:
“s”: GAGCCTACTAACGGGAT
“t”: CATCGTAATGACGGCCT
Should output:
7
Now input:
“s”: AGAGCGTAATGGCTAATGCCGGACCGAGTGTCTCAGTTTTCATATTGAATCGAATCGGCAGGATGGATGAGAATAATGGATTAAGGCGGGGATTAGCCCGGAATGGGCGAACCTGAATCCATTCAAATTGGGGAAAGCATGCAAAACTTGCACGCAAGAAAGCTATAGTAGAATGTGGTTGTTTACTGTCCGTTCGAAAGGAACTGTACTGGACCCACTAGTGGCGCGGTATGAATGGCTGGGGAGTCACTGCGTGCATGTGCAGTGTAGAGGGTGGATGGATCCACTCGGTAGCCAATGTCAACATCGACTTATGTTCCCACGATTTGCCCGCCCTTACTTCGTTTTCCTCACCAATTTTCTTTGGAGCCTCCTGCGGCAAGTTAATTCGAGTGCTAAATCACGATCCGCAGCCGAATAGCCACGCTT