Given a grid, return the total number of right triangles that can be formed by choosing
A collection of
Constraints:
grid.length
grid[i].length
grid[i][j]
Given a grid, return the total number of right triangles that can be formed by choosing
A collection of
Constraints:
grid.length
grid[i].length
grid[i][j]