#3257

Maximum Value Sum by Placing Three Rooks II

international master · 2065 · lc hard +32 · 26.9% accepted · 60 likes · top 5%

Description

You are given m x n integer matrix board. Place 3 rooks so no two share a row or column. Return the maximum sum of the three selected cell values.

Code

1
2
3