[BUG] KMP algorithm
Yancey2023 opened this issue · 0 comments
Yancey2023 commented
Description
For strings/knuth_morris_pratt.cpp:
if pattern is empty, it should immediately return true, otherwise pattern[k] will access out of bounds.
Expected behavior
.
Actual behavior
.
Steps to reproduce
No response
Context
.
Additional information
No response