Easy Crisp and Concise
cpp\nclass Solution {\npublic:\n    long long minimumMoney(vector<vector<int>> &transactions) {\n        int mx = 0;\n        for (auto &v : transactions) mx = 
```cpp\nclass Solution {\npublic:\n    long long minimumMoney(vector<vector<int>> &transactions) {\n        int mx = 0;\n        for (auto &v : transactions) mx = max(mx, min(v[0], v[1]));\n        long long res = mx;\n        for (auto &v : transactions) res += max(0, v[0] - v[1]);\n        return res;\n    }\n};\n```\n\n\n```cpp\nclass Solution {\npublic:\n    long long minimumMoney(vector<vector<int>> &transactions) {\n        int mx = 0;\n        long long res = 0;\n        for (auto &v : transactions) {\n            mx = max(mx, min(v[0], v[1]));\n            res += max(0, v[0] - v[1]);\n        }\n        res += mx;\n        return res;\n    }\n};\n```
['C', 'C++']