Skip to content

HerbertHe/judging-question-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Judging Question Toolkit

version download

Toolkit for Judging Question

Getting Started

npm install judging-question-toolkit
# yarn
yarn add judging-question-toolkit
# pnpm
pnpm install judging-question-toolkit

Usage

  • Diff the same part of strings between Answer and Input
import { DiffAnsSame } from "judging-question-toolkit"

const res = DiffAnsSame("abcdfg", "cdefh")
console.log(res)

/**
 * Output:
 * [ [ 2, 3, 4 ], [ 0, 1, 3 ] ]
 */

For more, see the source code

Thanks

The git commit messages are generated by developer-helper-cli (DHC)

LICENSE

Open source under MIT

About

Toolkit for Judging Question

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published