File tree 3 files changed +9
-4
lines changed
solution/3400-3499/3485.Longest Common Prefix of K Strings After Removal
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,9 @@ public:
262
262
int n;
263
263
vector<int> tree;
264
264
vector<int>& globalCount;
265
- SegmentTree(int n, vector<int>& globalCount) : n(n), globalCount(globalCount) {
265
+ SegmentTree(int n, vector<int>& globalCount)
266
+ : n(n)
267
+ , globalCount(globalCount) {
266
268
tree.assign(4 * (n + 1), -1);
267
269
build(1, 1, n);
268
270
}
Original file line number Diff line number Diff line change @@ -256,7 +256,9 @@ public:
256
256
int n;
257
257
vector<int> tree;
258
258
vector<int>& globalCount;
259
- SegmentTree(int n, vector<int>& globalCount) : n(n), globalCount(globalCount) {
259
+ SegmentTree(int n, vector<int>& globalCount)
260
+ : n(n)
261
+ , globalCount(globalCount) {
260
262
tree.assign(4 * (n + 1), -1);
261
263
build(1, 1, n);
262
264
}
@@ -348,7 +350,6 @@ public:
348
350
return ans;
349
351
}
350
352
};
351
-
352
353
```
353
354
354
355
#### Go
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ class Solution {
11
11
int n;
12
12
vector<int > tree;
13
13
vector<int >& globalCount;
14
- SegmentTree (int n, vector<int >& globalCount) : n(n), globalCount(globalCount) {
14
+ SegmentTree (int n, vector<int >& globalCount)
15
+ : n(n)
16
+ , globalCount(globalCount) {
15
17
tree.assign (4 * (n + 1 ), -1 );
16
18
build (1 , 1 , n);
17
19
}
You can’t perform that action at this time.
0 commit comments