-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringAlgo.h
More file actions
46 lines (25 loc) · 810 Bytes
/
StringAlgo.h
File metadata and controls
46 lines (25 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef STRINGALGO_H
#define STRINGALGO_H
#include <folly/FBString.h>
class StringAlgo {
public:
static folly::fbstring sub_string_range();
static void all_sub();
static size_t exp_n(int n);
static void string_compress();
static void string_expression();
static void find_longest_not_repeat_sub();
static void string_replace();
static void boolean_expression();
static void expression();
static void wordBreak();
static void searchWord();
static void minWindows();
// leetcode 187
static void findRepeatedDnaSequences();
static void Rabin_Karp(); // 从数组找到匹配的模式串的方法
private:
static void printAll(const folly::fbstring &cur, size_t index, const folly::fbstring &data);
};
#endif // STRINGALGO_H