Documentation
¶
Index ¶
Constants ¶
View Source
const (
N = 1001
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectSquares ¶
type DetectSquares struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor() DetectSquares
func (*DetectSquares) Add ¶
func (this *DetectSquares) Add(point []int)
func (*DetectSquares) Count ¶
func (this *DetectSquares) Count(point []int) int
Click to show internal directories.
Click to hide internal directories.
```
输入:
["DetectSquares", "add", "add", "add", "count", "count", "add", "count"]
[[], [[3, 10]], [[11, 2]], [[3, 2]], [[11, 10]], [[14, 8]], [[11, 2]], [[11, 10]]]
输出:
[null, null, null, null, 1, 0, null, 2]