Problem 477 · Medium

Total Hamming Distance

Calculate total Hamming distance between all pairs of numbers.

Open the interactive visualisation