Update 0459.重复的子字符串.md
This commit is contained in:
@@ -618,6 +618,7 @@ impl Solution {
|
|||||||
>前缀表统一减一
|
>前缀表统一减一
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
impl Solution {
|
||||||
pub fn get_next(next_len: usize, s: &Vec<char>) -> Vec<i32> {
|
pub fn get_next(next_len: usize, s: &Vec<char>) -> Vec<i32> {
|
||||||
let mut next = vec![-1; next_len];
|
let mut next = vec![-1; next_len];
|
||||||
let mut j = -1;
|
let mut j = -1;
|
||||||
@@ -642,6 +643,7 @@ impl Solution {
|
|||||||
}
|
}
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user