Problem 3493 · Medium

Properties Graph

Two rows are joined when they share at least k distinct values; union-find counts the resulting components.

Open the interactive visualisation