error:
Actually I think it is depend, current solution is base on non-spare matrix, which is use two loop to get the result. The idea is first fix two points on same col, then iterate the row, if next two point is all equal to 1, then add to answer.
leetcode-750-Number Of Corner Rectangles
最新推荐文章于 2022-11-05 03:29:17 发布