data-structure-and-algorithms-guidebook icon indicating copy to clipboard operation
data-structure-and-algorithms-guidebook copied to clipboard

BF 算法中的 for 循环写法有误。

Open bcaso opened this issue 2 years ago • 0 comments

https://tsejx.github.io/data-structure-and-algorithms-guidebook/algorithms/search/bf/

4      if (s[i] === j[i]) {

应该是 s[i] === p[j]

bcaso avatar Mar 18 '22 08:03 bcaso