# [3257\. Maximum Value Sum by Placing Three Rooks II](https://leetcode.com/problems/maximum-value-sum-by-placing-three-rooks-ii/) :::spoiler Hint ```cpp= ``` ::: :::spoiler Solution ```cpp= ``` - T: $O()$ - S: $O()$ :::