Problem 947 · Medium

Most Stones Removed with Same Row or Column

Remove as many stones as possible while every removed stone still shares a row or column with another remaining stone. The visual groups stones that connect through shared rows and columns.

Open the interactive visualisation