Restructure folders.

This commit is contained in:
Oleksii Trekhleb 2018-04-26 07:26:12 +03:00
parent 9bef8de6b1
commit c62a6ceabf
20 changed files with 9 additions and 8 deletions

View File

@ -30,13 +30,14 @@
* **Math** * **Math**
* [Factorial](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/factorial) * [Factorial](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/factorial)
* [Fibonacci Number](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fibonacci) * [Fibonacci Number](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fibonacci)
* [Cartesian Product](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/cartesian-product) - product of multiple sets
* [Power Set](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/power-set) - all subsets of the set
* [Permutations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/permutations) (with and without repetitions)
* [Combinations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/combinations) (with and without repetitions)
* [Primality Test](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/primality-test) (trial division method) * [Primality Test](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/primality-test) (trial division method)
* [Euclidean Algorithm](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/euclidean-algorithm) - calculate the Greatest Common Divisor (GCD) * [Euclidean Algorithm](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/euclidean-algorithm) - calculate the Greatest Common Divisor (GCD)
* [Least Common Multiple](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/least-common-multiple) (LCM) * [Least Common Multiple](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/least-common-multiple) (LCM)
* **Sets**
* [Cartesian Product](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/cartesian-product) - product of multiple sets
* [Power Set](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/power-set) - all subsets of the set
* [Permutations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/permutations) (with and without repetitions)
* [Combinations](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/combinations) (with and without repetitions)
* [FisherYates Shuffle](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fisher-yates) - random permutation of a finite sequence * [FisherYates Shuffle](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fisher-yates) - random permutation of a finite sequence
* **String** * **String**
* [Levenshtein Distance](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/string/levenshtein-distance) - minimum edit distance between two sequences * [Levenshtein Distance](https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/string/levenshtein-distance) - minimum edit distance between two sequences

View File

@ -1,5 +1,5 @@
import combineWithRepetitions from '../combineWithRepetitions'; import combineWithRepetitions from '../combineWithRepetitions';
import factorial from '../../factorial/factorial'; import factorial from '../../../math/factorial/factorial';
describe('combineWithRepetitions', () => { describe('combineWithRepetitions', () => {
it('should combine string with repetitions', () => { it('should combine string with repetitions', () => {

View File

@ -1,5 +1,5 @@
import combineWithoutRepetitions from '../combineWithoutRepetitions'; import combineWithoutRepetitions from '../combineWithoutRepetitions';
import factorial from '../../factorial/factorial'; import factorial from '../../../math/factorial/factorial';
describe('combineWithoutRepetitions', () => { describe('combineWithoutRepetitions', () => {
it('should combine string without repetitions', () => { it('should combine string without repetitions', () => {

View File

@ -1,5 +1,5 @@
import permutateWithoutRepetitions from '../permutateWithoutRepetitions'; import permutateWithoutRepetitions from '../permutateWithoutRepetitions';
import factorial from '../../factorial/factorial'; import factorial from '../../../math/factorial/factorial';
describe('permutateWithoutRepetitions', () => { describe('permutateWithoutRepetitions', () => {
it('should permutate string', () => { it('should permutate string', () => {