Skip to content

Commit 6f263c3

Browse files
committed
Sets update
1 parent e42087b commit 6f263c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sets/sets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const getAllPermutations = (options) => {
6868
};
6969

7070
// Permutation algorithm with repetitive values
71+
// Time complexity: O(n^m) Depend on two input factors, grows faster than exponential O(n!)
7172
export const getAllPermutationsWithRepetition = (
7273
options,
7374
combinationLength
@@ -87,4 +88,3 @@ export const getAllPermutationsWithRepetition = (
8788
return possibleOptions;
8889
};
8990

90-
console.log(getAllPermutationsWithRepetition([1, 2, 3], 2).length);

0 commit comments

Comments
 (0)