1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-11-14 01:49:41 +01:00
LeetCode/problems/kt/richest-customer-wealth.kt
Matej Focko 264f5c78db
problems(kt): add “1672. Richest Customer Wealth”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-12-04 22:19:18 +01:00

6 lines
159 B
Kotlin

class Solution {
fun maximumWealth(accounts: Array<IntArray>): Int =
accounts.map { account ->
account.sum()
}.maxOrNull()!!
}