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()!!
}