LeetCode MEDIUM 1975 Maximum Matrix Sum Summary
Generated by Codex with GPT 5.6 Sol High
Quick facts
- Difficulty:
MEDIUM - Problem: Maximum Matrix Sum
- Topics:
Array,Greedy,Matrix
The problem in plain language
The input is a square matrix of integers. One operation chooses two cells that share an edge and reverses both signs. The operation may be repeated any number of times, and the goal is to make the matrix’s total sum as large as possible.
Continue ...