Your want to choose two non intersecting square sub grids such that they have no common rows or coloumn the objective is to maximise the sum of beauties of both square sub grids
The beauty of a sub grids is defined as the difference value within that sub grid
Find the maximum possible sum of beauties for the selected two sub grids
New contributor
Mamidala Pooja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.