myyang / kmp

KMP implement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kmp

Simple KMP implement

Example:

package main

import (
    "github.com/myyang/kmp"
    "fmt"
)

func main() {
    s := kmp.KMP("ABCC", "ABCCCC")
    fmt.Printf("%v\n", s)
}

Output:

[0]

About

KMP implement

License:MIT License


Languages

Language:Go 100.0%