Skip to content

[BUG] KMP algorithm #2712

@Yancey2023

Description

@Yancey2023

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions