【文件属性】:
文件名称:permutations:查找字符串的所有排列
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-09 19:44:38
JavaScript
排列
查找字符串的所有排列
安装
npm install permutation
用法
var permutations = require ( 'permutation' ) ;
permutations ( 'abc' ) // [ 'abc', 'acb', 'bac', 'bca', 'cab', 'cba' ]
permutations ( 'ab' ) // [ 'ab', 'ba']
permutations ( 'aa' ) // [ 'aa', 'aa' ]
permutations ( 'aa' , { unique : true } ) // [ 'aa' ]
执照
麻省理工学院
【文件预览】:
permutations-master
----.gitignore(1KB)
----package.json(648B)
----permutations.js(752B)
----LICENSE.md(1KB)
----CHANGELOG.md(82B)
----README.md(372B)
----.gitattributes(52B)
----bower.json(416B)
----test()
--------permutations.js(447B)
----.editorconfig(439B)