combinations-generator:生成输入字符串的所有可能组合

时间:2021-06-04 10:57:12
【文件属性】:
文件名称:combinations-generator:生成输入字符串的所有可能组合
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-04 10:57:12
JavaScript #combinations-generator 此模块用于生成给定输入字符串的所有可能组合。 输入:任何有效的字符串输出:所有可能组合的数组 ##示例用法 var combinations = require ( 'combinations-generator' ) ; var result = combinations . generate ( "abcde" ) ; ##样本输出 ['a', 'b', 'ab', 'c', 'ac', 'bc', 'abc', 'd', 'ad', 'bd', 'abd', ' cd', 'acd', 'bcd', 'abcd', 'e', 'ae', 'be', 'abe', 'ce', 'ace', 'bce', 'abce', 'de' , 'ade', 'bde', 'abde', 'cde', 'acde', 'bcde', 'abc
【文件预览】:
combinations-generator-master
----package.json(666B)
----index.js(680B)
----README.md(709B)

网友评论