Rust Concise Solution
~~~\nimpl Solution {\n    pub fn minimum_money(transactions: Vec>) -> i64 {\n        let mut sum = 0; // net spending\n        for t in &transactions { sum += i
~~~\nimpl Solution {\n    pub fn minimum_money(transactions: Vec<Vec<i32>>) -> i64 {\n        let mut sum = 0; // net spending\n        for t in &transactions { sum += i32::max(0, t[0] - t[1]) as i64; }\n        \n        let mut ret = sum;\n\t    // Performing current transaction at the end\n        for t in transactions {   \n            if t[0] <= t[1] { ret = ret.max(sum + t[0] as i64); }\n            else { ret = ret.max(sum + t[1] as i64); }\n        }\n        ret\n    }\n}\n~~~
['Rust']