mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 11:08:54 +08:00
Update and rename CreatePurmutations.js to createPurmutations.js
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
a permutation of a set is, loosely speaking, an arrangement of its members into a sequence or linear order, or if the set is already ordered, a rearrangement of its elements.
|
||||||
|
The word "permutation" also refers to the act or process of changing the linear order of an ordered set
|
||||||
|
More at : https://en.wikipedia.org/wiki/Permutation
|
||||||
|
/*
|
||||||
|
|
||||||
const createPermutations = (str) => {
|
const createPermutations = (str) => {
|
||||||
// convert string to array
|
// convert string to array
|
||||||
const arr = str.split('')
|
const arr = str.split('')
|
Reference in New Issue
Block a user