MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / hamming_distance

Function hamming_distance

src/string/hamming_distance.rs:10–22  ·  view source on GitHub ↗

Calculates the Hamming distance between two strings. The Hamming distance is defined as the number of positions at which the corresponding characters of the two strings are different.

(string_a: &str, string_b: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected