@maxslimb/next-permutation
v1.0.1
Published
find the next permutation of the number
Downloads
1
Readme
next-permutation-package
Intro
next_permutation
is a function of full permutation, which can receive a string s, and can return the next string in the permutation (if it has reached the last permutation, it will return the last one)
Install
npm i @maxslimb/next-permutation
Usage
const NextPermutation = require('next-permutation')
let Str = '125'
let res = NextPermutation(Str)
console.log(res)