problemscpp
A collection of my answers to algorithm problems in c++.
|
#include <leetcode.h>
Public 成员函数 | |
Encrypter (vector< char > &keys, vector< string > &values, vector< string > &dictionary) | |
用 keys、values 和 dictionary 初始化 Encrypter 类。 | |
int | decrypt (const string &word2) |
统计可以由 word2 解密得到且出现在 dictionary 中的字符串数目 | |
string | encrypt (const string &word1) const |
按上述加密过程完成对 word1 的加密 | |
Private 属性 | |
unordered_map< string, int > | count |
array< string, 26 > | mp |
在文件 leetcode.h 第 2067 行定义.
leetcode::encrypt_and_decrypt_strings::Encrypter::Encrypter | ( | vector< char > & | keys, |
vector< string > & | values, | ||
vector< string > & | dictionary ) |
用 keys、values 和 dictionary 初始化 Encrypter 类。
在文件 leetcode.cpp 第 5625 行定义.
|
nodiscard |
|
nodiscard |
按上述加密过程完成对 word1 的加密
在文件 leetcode.cpp 第 5634 行定义.
引用了 mp.
被这些函数引用 Encrypter().
|
private |
在文件 leetcode.h 第 2069 行定义.
被这些函数引用 Encrypter() , 以及 decrypt().
|
private |
在文件 leetcode.h 第 2068 行定义.
被这些函数引用 Encrypter() , 以及 encrypt().