Files
abap/exercises/practice/hamming/.docs/instructions.md
András B Nagy 8ceeb7ebf6 Sync problem specs (#326)
* Sync metadata

* Sync docs
2025-03-23 11:09:09 +01:00

465 B

Instructions

Calculate the Hamming distance between two DNA strands.

We read DNA using the letters C, A, G and T. Two strands might look like this:

GAGCCTACTAACGGGAT
CATCGTAATGACGGCCT
^ ^ ^  ^ ^    ^^

They have 7 differences, and therefore the Hamming distance is 7.

Implementation notes

The Hamming distance is only defined for sequences of equal length, so an attempt to calculate it between sequences of different lengths should not work.