you ve get nm sheet square paper some square paint Lets mark set paint square a Set A connected your task find minimum number square delete set a connectedA set paint square call connect square b set sequence square set begin end b sequence square share common square follow sequence an set set consist exactly square connect definition