#include <leetcode.h>
|
multiset< pair< int, int > > | ms |
|
◆ DetectSquares()
leetcode::detect_squares::DetectSquares::DetectSquares |
( |
| ) |
|
在文件 leetcode.cpp 第 1702 行定义.
1702{
ms = multiset<pair<int, int>>(); }
multiset< pair< int, int > > ms
引用了 ms.
◆ add()
void leetcode::detect_squares::DetectSquares::add |
( |
vector< int > | point | ) |
|
◆ count()
int leetcode::detect_squares::DetectSquares::count |
( |
vector< int > | point | ) |
const |
|
nodiscard |
在文件 leetcode.cpp 第 1706 行定义.
1706 {
1709 if(p.first != point[0] && p.second != point[1] && abs(p.first - point[0]) == abs(p.second - point[1])) {
1710 count +=
ms.count(pair(p.first, point[1])) *
ms.count(pair(point[0], p.second));
1711 }
1712 }
1714 }
int count(vector< int > point) const
引用了 count() , 以及 ms.
被这些函数引用 count().
◆ ms
multiset<pair<int, int> > leetcode::detect_squares::DetectSquares::ms |
|
private |
该类的文档由以下文件生成: