Solution (source code)

= Solution

<Minimum-distance decoding> with <Hamming distance> chooses a codeword minimizing the number of positions in which it differs from the received word. Ties may be resolved by a fixed rule.