Closed Yancey2023 closed 2 weeks ago
For strings/knuth_morris_pratt.cpp: if pattern is empty, it should immediately return true, otherwise pattern[k] will access out of bounds.
strings/knuth_morris_pratt.cpp
pattern
true
pattern[k]
.
No response
Description
For
strings/knuth_morris_pratt.cpp
: ifpattern
is empty, it should immediately returntrue
, otherwisepattern[k]
will access out of bounds.Expected behavior
.
Actual behavior
.
Steps to reproduce
No response
Context
.
Additional information
No response