We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42087b commit 6f263c3Copy full SHA for 6f263c3
src/sets/sets.js
@@ -68,6 +68,7 @@ export const getAllPermutations = (options) => {
68
};
69
70
// Permutation algorithm with repetitive values
71
+// Time complexity: O(n^m) Depend on two input factors, grows faster than exponential O(n!)
72
export const getAllPermutationsWithRepetition = (
73
options,
74
combinationLength
@@ -87,4 +88,3 @@ export const getAllPermutationsWithRepetition = (
87
88
return possibleOptions;
89
90
-console.log(getAllPermutationsWithRepetition([1, 2, 3], 2).length);
0 commit comments