Skip to content

Commit c62a6ce

Browse files
committedApr 26, 2018
Restructure folders.
1 parent 9bef8de commit c62a6ce

20 files changed

+9
-8
lines changed
 

‎README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@
3030
* **Math**
3131
* [Factorial](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/factorial)
3232
* [Fibonacci Number](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fibonacci)
33-
* [Cartesian Product](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/cartesian-product) - product of multiple sets
34-
* [Power Set](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/power-set) - all subsets of the set
35-
* [Permutations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/permutations) (with and without repetitions)
36-
* [Combinations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/combinations) (with and without repetitions)
3733
* [Primality Test](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/primality-test) (trial division method)
3834
* [Euclidean Algorithm](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/euclidean-algorithm) - calculate the Greatest Common Divisor (GCD)
3935
* [Least Common Multiple](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/least-common-multiple) (LCM)
40-
* [Fisher–Yates Shuffle](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fisher-yates) - random permutation of a finite sequence
36+
* **Sets**
37+
* [Cartesian Product](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/cartesian-product) - product of multiple sets
38+
* [Power Set](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/power-set) - all subsets of the set
39+
* [Permutations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/permutations) (with and without repetitions)
40+
* [Combinations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/combinations) (with and without repetitions)
41+
* [Fisher–Yates Shuffle](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fisher-yates) - random permutation of a finite sequence
4142
* **String**
4243
* [Levenshtein Distance](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/string/levenshtein-distance) - minimum edit distance between two sequences
4344
* [Hamming Distance](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/string/hamming-distance) - number of positions at which the symbols are different

‎src/algorithms/math/combinations/__test__/combineWithRepetitions.test.js ‎src/algorithms/sets/combinations/__test__/combineWithRepetitions.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import combineWithRepetitions from '../combineWithRepetitions';
2-
import factorial from '../../factorial/factorial';
2+
import factorial from '../../../math/factorial/factorial';
33

44
describe('combineWithRepetitions', () => {
55
it('should combine string with repetitions', () => {

‎src/algorithms/math/combinations/__test__/combineWithoutRepetitions.test.js ‎src/algorithms/sets/combinations/__test__/combineWithoutRepetitions.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import combineWithoutRepetitions from '../combineWithoutRepetitions';
2-
import factorial from '../../factorial/factorial';
2+
import factorial from '../../../math/factorial/factorial';
33

44
describe('combineWithoutRepetitions', () => {
55
it('should combine string without repetitions', () => {

‎src/algorithms/math/permutations/__test__/permutateWithoutRepetitions.test.js ‎src/algorithms/sets/permutations/__test__/permutateWithoutRepetitions.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import permutateWithoutRepetitions from '../permutateWithoutRepetitions';
2-
import factorial from '../../factorial/factorial';
2+
import factorial from '../../../math/factorial/factorial';
33

44
describe('permutateWithoutRepetitions', () => {
55
it('should permutate string', () => {

0 commit comments

Comments
 (0)
Please sign in to comment.