Sha256: ce819f75195b600107b80311b96688e63dcea0fac20e222cea01c161b1dc4389
Contents?: true
Size: 222 Bytes
Versions: 115
Compression:
Stored size: 222 Bytes
Contents
using System; using System.Linq; public static class Hamming { public static int Compute(string firstStrand, string secondStrand) { return firstStrand.Where((x, i) => x != secondStrand[i]).Count(); } }
Version data entries
115 entries across 115 versions & 1 rubygems