Problem 425 · Hard

Word Squares

Find all word squares, where the kth row and the kth column of a set of equal-length words read the same. The visual builds a prefix tree of the words and extends the square one row at a time.

Open the interactive visualisation