最短公共超字符串生成器
github.com/s9e/ShortestCommonSuperstring
主页
源代码
问题
安装: 14
依赖: 0
建议者: 0
安全: 0
星标: 0
关注者: 3
分支: 1
开放问题: 0
Requires
Requires (Dev)
Suggests
None
Provides
Conflicts
Replaces
MIT 36a1f737abbc43a9cb2209c452771112b2afd69d
scssuperstringsupersequence
This package is auto-updated.
Last update: 2024-09-11 20:10:14 UTC
s9e\ShortestCommonSuperstring接受一系列字符串,并返回一个包含所有给定输入的单一字符串。该实现使用贪心近似算法。
$scs = new s9e\ShortestCommonSuperstring\ShortestCommonSuperstring; echo $scs->getShortest(['abb', 'bba', 'bbb']);
abbba