(self, point: List[int])
| 8 | self.pts.append(point) |
| 9 | |
| 10 | def count(self, point: List[int]) -> int: |
| 11 | res = 0 |
| 12 | px, py = point |
| 13 | for x, y in self.pts: |
| 14 | if (abs(py - y) != abs(px - x)) or x == px or y == py: |
| 15 | continue |
| 16 | res += self.ptsCount[(x, py)] * self.ptsCount[(px, y)] |
| 17 | return res |
no test coverage detected