Update 0459.重复的子字符串.md

This commit is contained in:
fw_qaq 2022-10-25 23:27:09 +08:00 committed by GitHub
parent 856907e3d5
commit f386e3ca68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -618,6 +618,7 @@ impl Solution {
>前缀表统一减一
```rust
impl Solution {
pub fn get_next(next_len: usize, s: &Vec<char>) -> Vec<i32> {
let mut next = vec![-1; next_len];
let mut j = -1;
@ -642,6 +643,7 @@ impl Solution {
}
false
}
}
```