更新
This commit is contained in:
parent
5f6aa846a2
commit
47820c89dc
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -88,5 +88,5 @@
|
||||
"syncstream": "cpp",
|
||||
"queue": "cpp",
|
||||
"netfwd": "cpp"
|
||||
}
|
||||
},
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
* @Version: 1.0
|
||||
* @Autor: zhuyijun
|
||||
* @Date: 2021-12-23 14:37:52
|
||||
* @LastEditTime: 2021-12-23 14:37:52
|
||||
* @LastEditTime: 2021-12-28 17:13:01
|
||||
*/
|
||||
/*
|
||||
1044. 最长重复子串
|
||||
@ -24,6 +24,8 @@
|
||||
输出:""
|
||||
|
||||
*/
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
class SuffixArray {
|
||||
public:
|
||||
using size_type = unsigned;
|
||||
|
21
string/344.cpp
Normal file
21
string/344.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @Description:
|
||||
* @Version: 1.0
|
||||
* @Autor: zhuyijun
|
||||
* @Date: 2021-12-28 17:12:21
|
||||
* @LastEditTime: 2022-01-21 15:35:19
|
||||
*/
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
void reverseString(vector<char>& s) {
|
||||
if (s.size() < 2) {
|
||||
return;
|
||||
}
|
||||
int l = 0, r = s.size() - 1;
|
||||
while (l < r) {
|
||||
char temp = s[r];
|
||||
s[r] = s[l];
|
||||
s[l] = temp;
|
||||
l++, r--;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user