You are given an fruits where fruits[i][j] represents the number of fruits at cell
Three children collect fruits in the grid according to the following rules:
The first child starts at cell
The second child starts at cell
The third child starts at cell
Each child makes exactly
When a child visits a cell, they collect all the fruits from that cell. If a cell is visited by more than one child, the fruits in that cell are collected only once.
Return the maximum total number of fruits the three children can collect.
Constraints:
fruits.length fruits[i].length
fruits[i][j]
You are given an fruits where fruits[i][j] represents the number of fruits at cell
Three children collect fruits in the grid according to the following rules:
The first child starts at cell
The second child starts at cell
The third child starts at cell
Each child makes exactly
When a child visits a cell, they collect all the fruits from that cell. If a cell is visited by more than one child, the fruits in that cell are collected only once.
Return the maximum total number of fruits the three children can collect.
Constraints:
fruits.length fruits[i].length
fruits[i][j]