Sha256: 59ca9b92b8f5611410c97c626d371e555d912eec1af218e8e7853f24b9476f1d
Contents?: true
Size: 218 Bytes
Versions: 97
Compression:
Stored size: 218 Bytes
Contents
local Hamming = {} function Hamming.compute(a,b) local distance = 0 for i = 1, a:len() do if (a:sub(i, i) ~= b:sub(i, i)) then distance = distance + 1 end end return distance end return Hamming
Version data entries
97 entries across 97 versions & 1 rubygems