Problem 3529 · Medium

Count Cells in Overlapping Horizontal and Vertical Substrings

Reading a letter grid row by row and column by column, with each line wrapping into the next, count the cells covered by both an across match and a down match of the pattern.

Open the interactive visualisation