Skip to content

add recursive solution to permutations with repetitions problem - #52

Merged
trekhleb merged 4 commits into
trekhleb:permutations-with-repetitions-recursivefrom
mmapplebeck:permutations-with-repetitions-recursive
Jun 13, 2018
Merged

trekhleb merged 4 commits into
trekhleb:permutations-with-repetitions-recursivefrom
mmapplebeck:permutations-with-repetitions-recursive

Conversation

@mmapplebeck

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-io

codecov-io commented Jun 4, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #52 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #52   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          87     89    +2     
  Lines        1903   1920   +17     
  Branches      337    339    +2     
=====================================
+ Hits         1903   1920   +17
Impacted Files Coverage Δ
...tations/__test__/testPermutateWithRepetitionsFn.js 100% <100%> (ø)
.../permutations/permutateWithRepetitionsRecursive.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9de6bc7...ee8fbdf. Read the comment docs.

@trekhleb
trekhleb changed the base branch from master to permutations-with-repetitions-recursive June 13, 2018 05:03
@trekhleb

Copy link
Copy Markdown
Owner

Thank you for submission @mmapplebeck

@trekhleb
trekhleb merged commit b0c55ec into trekhleb:permutations-with-repetitions-recursive Jun 13, 2018
tstillwell added a commit to tstillwell/javascript-algorithms that referenced this pull request Jun 29, 2018
* chore: ignore .DS_Store in git (trekhleb#65)

* Fix BST removal method.

* Simplify combineWithoutRepetition algorithm.

* add recursive solution to permutations with repetitions problem (trekhleb#52)

* add recursive solution to permutations with repetitions problem

* fix untested function, failing test

* add comments

* Add recursive way of generating permutations with repetitions.

* Code style fixes.

* Update javascript-algorithms-and-data-structures version.

* fix unbound knapsack problem with items more than 1(default value) (trekhleb#73)

* Code style fixes.

* Correct a comment (trekhleb#66)

* Fix LinkedList

* Fix the prepend method for the LinkedList

* Fix the remove method for the MinHeap

* Correct a comment

* Add algorithms complexity to README.

* Update README.

* Z algorithm implementation (trekhleb#77)

* Implemented Z algorithm

* Fixed bugs in implementation and added tests

* Added README explaining z algorithm

* Code style fixes.

* Add comments.

* Add comments.

* Fix BST removal method (trekhleb#74)

* Fix LinkedList

* Fix the prepend method for the LinkedList

* Fix the remove method for the MinHeap

* Correct a comment

* Fix BST removal method

* Add setValue and nodeCopy methods to binary tree node.

* Corrected explanations and included an example (trekhleb#75)

* Update README for integer partition.

* Added Complexity of Each Algorithm in Sorting/ directory. (trekhleb#76)

* Added Complexity to Bubble Sort README.md

* Added Complexity to Counting-Sort README.md

* Italicized n in Bubble Sort README.md

* Added Complexity to Heap Sort README.md

* Added Complexity to Insertion Sort README.md

* Added Complexity to Merge Sort README.md

* Added Complexity to Quick Sort README.md

* Added Complexity to Radix Sort README.md

* Added Complexity to Selection Sort README.md

* Added Complexity to SHell Sort README.md

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Update READMEs.

* Add Levenshtein Distance algorithm explanations.

*  Fix the findEdge method of the graph (trekhleb#80)

* Fix LinkedList

* Fix the prepend method for the LinkedList

* Fix the remove method for the MinHeap

* Correct a comment

* Fix BST removal method

* Fix the findEdge method of the graph

* Code style fix.

* Add regular expression matching algorithm.

* Fix the value returned by DisjointSet union (trekhleb#81)

* Fix LinkedList

* Fix the prepend method for the LinkedList

* Fix the remove method for the MinHeap

* Correct a comment

* Fix BST removal method

* Fix the findEdge method of the graph

* Fix the value returned by DisjointSet union

* Add bit manipulation section.

* Add more bit manipulation functions.

* Add more bit manipulation functions.

* Fix typo.

* Simplify combineWithoutRepetitions function.

* Simplify combineWithRepetitions function.

* Add recursive factorial function (trekhleb#85)

* Fix LinkedList

* Fix the prepend method for the LinkedList

* Fix the remove method for the MinHeap

* Correct a comment

* Fix BST removal method

* Fix the findEdge method of the graph

* Fix the value returned by DisjointSet union

* Add recursive factorial function

* Simplify permutateWithRepetitions algorithm.
shoredata pushed a commit to shoredata/javascript-algorithms that referenced this pull request Mar 28, 2019
…hleb#52)

* add recursive solution to permutations with repetitions problem

* fix untested function, failing test

* add comments
sahilg14 pushed a commit to sahilg14/javascript-algorithms that referenced this pull request Sep 7, 2026
…hleb#52)

* add recursive solution to permutations with repetitions problem

* fix untested function, failing test

* add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants