js-kmp-matcher
Version:
简单的 KMP 算法(即 Knuth–Morris–Pratt 算法)的实现,用于学习之目的,代码当中有每一部分的详细说明。
11 lines (9 loc) • 343 B
JavaScript
/**
* Copyright (c) 2022 Hemashushu <hippospark@gmail.com>, All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { KMP } from './src/kmp.js'
export { KMP };