From b60564795dfc00402e513debaaf2c2b46969b1ba Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Wed, 25 Jan 2023 23:50:45 -0500 Subject: [PATCH] Time: 115 ms (22.13%), Space: 13.9 MB (25.84%) - LeetHub --- 1672-richest-customer-wealth/1672-richest-customer-wealth.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 1672-richest-customer-wealth/1672-richest-customer-wealth.py diff --git a/1672-richest-customer-wealth/1672-richest-customer-wealth.py b/1672-richest-customer-wealth/1672-richest-customer-wealth.py new file mode 100644 index 0000000..22ee1ad --- /dev/null +++ b/1672-richest-customer-wealth/1672-richest-customer-wealth.py @@ -0,0 +1,3 @@ +class Solution: + def maximumWealth(self, accounts: List[List[int]]) -> int: + return max([sum(x) for x in accounts]) \ No newline at end of file