Cody

Problem 2303. Compute Hamming distances between each pair of rows from two input matrices

Created by Ryszard Maciol in Community

For two input matrices u ( n x uCols ) and v ( n x vCols ) of numbers in range [0..255] (8-bit), such that each column represents an (8 x n)-dimensional binary vector, calculate uCols x vCols matrix with each entry (i,j) being a Hamming distance between i -th and j -th column from inputs u and v respectively.

Solution Stats

80.95% Correct | 19.05% Incorrect
Last solution submitted on Jun 09, 2018