problemscpp
A collection of my answers to algorithm problems in c++.
|
#include <leetcode.h>
Public 成员函数 | |
unsigned int | find (unsigned int x) |
vector< int > | groupStrings (vector< string > &words) |
void | insert (unsigned int num) |
void | to_union (unsigned int x1, unsigned int x2) |
静态 Public 成员函数 | |
static unsigned int | compress (const string &word) |
Private 属性 | |
int | groups = 0 |
unsigned int | max_size = 1 |
unordered_map< unsigned int, unsigned int > | parent = unordered_map<unsigned int, unsigned int>() |
unordered_map< unsigned int, unsigned int > | rank = unordered_map<unsigned int, unsigned int>() |
unordered_map< unsigned int, unsigned int > | size = unordered_map<unsigned int, unsigned int>() |
在文件 leetcode.h 第 830 行定义.
|
static |
unsigned int leetcode::groups_of_strings::Solution::find | ( | unsigned int | x | ) |
在文件 leetcode.cpp 第 2057 行定义.
被这些函数引用 find() , 以及 to_union().
vector< int > leetcode::groups_of_strings::Solution::groupStrings | ( | vector< string > & | words | ) |
在文件 leetcode.cpp 第 2004 行定义.
引用了 compress(), groups, insert(), max_size, parent , 以及 to_union().
void leetcode::groups_of_strings::Solution::insert | ( | unsigned int | num | ) |
在文件 leetcode.cpp 第 2045 行定义.
引用了 groups, max_size, parent, rank , 以及 size.
被这些函数引用 groupStrings().
void leetcode::groups_of_strings::Solution::to_union | ( | unsigned int | x1, |
unsigned int | x2 | ||
) |
在文件 leetcode.cpp 第 2059 行定义.
引用了 find(), groups, max_size, parent, rank , 以及 size.
被这些函数引用 groupStrings().
|
private |
在文件 leetcode.h 第 831 行定义.
被这些函数引用 groupStrings(), insert() , 以及 to_union().
|
private |
在文件 leetcode.h 第 832 行定义.
被这些函数引用 groupStrings(), insert() , 以及 to_union().
|
private |
在文件 leetcode.h 第 833 行定义.
被这些函数引用 find(), groupStrings(), insert() , 以及 to_union().
|
private |
在文件 leetcode.h 第 834 行定义.
被这些函数引用 insert() , 以及 to_union().
|
private |
在文件 leetcode.h 第 835 行定义.
被这些函数引用 insert() , 以及 to_union().