Skip to content

HammingDistance

Counts the positions at which two equal-length strings differ.

$ wo 'HammingDistance["karolin", "kathrin"]'
3