EZ. Beats 100%✅✔️
\n\n# Code\ncpp []\nclass Solution {\npublic:\n    long long maxMatrixSum(vector<vector<int>>& matrix) {\n        long long ans = 0;\n        int min_num = INT_
\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    long long maxMatrixSum(vector<vector<int>>& matrix) {\n        long long ans = 0;\n        int min_num = INT_MAX;\n        int neg = 0;\n\n        for(auto i : matrix) {\n            for(int j : i) {\n                if(j < 0) neg++;\n                min_num = min(min_num, abs(j));\n                ans += abs(j);\n            }\n        }\n\n        if(neg%2==0) return ans;\n        else return ans-2*min_num;\n    }\n};\n```
['Greedy', 'C++']