Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 493 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 493 Bytes

Knuth-Morris-Pratt algorithm

Go Report Card

Usage

import "github.com/jancajthaml-go/kmp"

kmp.Search("GEEKS FOR GEEKS", "GEEK")

Performance

  • 16 B/op
  • 2 allocs/op

verify your performance by running make benchmark

Resources