You are given a arr and an mat. Both arr and mat contain every integer in the range
Starting at index arr and paint the cell in mat that contains the value arr[i].
Return the smallest index i at which at least one entire row or column in mat becomes fully painted.
Constraints:
m mat.length
n mat[i].length
arr.length m $ imes$ n
m, n
m $ imes$ n
arr[i], mat[r][c] m $ imes$ n
All the integers of arr are unique.
All the integers of mat are unique.
You are given a arr and an mat. Both arr and mat contain every integer in the range
Starting at index arr and paint the cell in mat that contains the value arr[i].
Return the smallest index i at which at least one entire row or column in mat becomes fully painted.
Constraints:
m mat.length
n mat[i].length
arr.length m $ imes$ n
m, n
m $ imes$ n
arr[i], mat[r][c] m $ imes$ n
All the integers of arr are unique.
All the integers of mat are unique.