Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/UnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version: ${{ matrix.julia-version }}

- name: Cache artifacts
uses: actions/cache@v1
uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
version: ${{ matrix.julia-version }}
- name: Cache artifacts
uses: actions/cache@v1
uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ---
# title: 1672. Richest Customer Wealth
# id: problem1672
# author: Tian Jun
# date: 2020-10-31
# author: Ibrahim Al-Aqua
# date: 2025-08-05
# difficulty: Easy
# categories: Array
# link: <https://leetcode.com/problems/richest-customer-wealth/description/>
Expand Down Expand Up @@ -65,5 +65,8 @@
## @lc code=start
using LeetCode

## add your code here:
function maximumWealth(accounts::Array{<:Integer,2})::Int
return maximum(sum(accounts; dims=2))
end

## @lc code=end
5 changes: 5 additions & 0 deletions test/problems/1672.richest-customer-wealth.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@testset "1672.richest-customer-wealth.jl" begin
@test maximumWealth([1 2 3; 3 2 1]) == 6
@test maximumWealth([1 5; 7 3; 3 5]) == 10
@test maximumWealth([2 8 7; 7 1 3; 1 9 5]) == 17
end