Skip to content

Commit

Permalink
Update 0028.实现strStr.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lfeng1420 authored Oct 8, 2021
1 parent 145b5b0 commit 4292468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0028.实现strStr.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ next数组就可以是前缀表,但是很多实现都是把前缀表统一减

其实**这并不涉及到KMP的原理,而是具体实现,next数组即可以就是前缀表,也可以是前缀表统一减一(右移一位,初始位置为-1)。**

后面我会提供两种不同的实现代码,大家就明白了了
后面我会提供两种不同的实现代码,大家就明白了

# 使用next数组来匹配

Expand Down

0 comments on commit 4292468

Please sign in to comment.