diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 442688585..ad54b2315 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,7 +16,7 @@ jobs: run: | npm install standard --save-dev npx standard - cd linear-algebra-javascript + cd Linear-Algebra-Javascript npm ci npm run build --if-present npm test diff --git a/Algorithms/dynamic_programming/fibonacci.js b/Algorithms/Dynamic-Programming/Fibonacci.js similarity index 100% rename from Algorithms/dynamic_programming/fibonacci.js rename to Algorithms/Dynamic-Programming/Fibonacci.js diff --git a/DIRECTORY.md b/DIRECTORY.md index 780cf84c3..55fc8074c 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -1,7 +1,7 @@ ## Algorithms - * dynamic programming - * [fibonacci](https://github.com/TheAlgorithms/Javascript/blob/master/Algorithms/dynamic_programming/fibonacci.js) + * Dynamic-Programming + * [Fibonacci](https://github.com/TheAlgorithms/Javascript/blob/master/Algorithms/Dynamic-Programming/Fibonacci.js) * [EucledianGCD](https://github.com/TheAlgorithms/Javascript/blob/master/Algorithms/EucledianGCD.js) * [KadaneAlgo](https://github.com/TheAlgorithms/Javascript/blob/master/Algorithms/KadaneAlgo.js) * [sieveOfEratosthenes](https://github.com/TheAlgorithms/Javascript/blob/master/Algorithms/sieveOfEratosthenes.js) @@ -16,65 +16,65 @@ * [DecimalToHex](https://github.com/TheAlgorithms/Javascript/blob/master/Conversions/DecimalToHex.js) * [DecimalToOctal](https://github.com/TheAlgorithms/Javascript/blob/master/Conversions/DecimalToOctal.js) -## Data Structures +## Data-Structures * Graph - * [Graph](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Graph/Graph.js) + * [Graph](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Graph/Graph.js) * Heap - * [MinPriorityQueue](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Heap/MinPriorityQueue.js) - * Linked List - * [DoublyLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Linked%20List/DoublyLinkedList.js) - * [singlylinklist](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Linked%20List/singlylinklist.js) + * [MinPriorityQueue](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Heap/MinPriorityQueue.js) + * Linked-List + * [DoublyLinkedList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/DoublyLinkedList.js) + * [SinglyLinkList](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Linked-List/SinglyLinkList.js) * Queue - * [Queue](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Queue/Queue.js) - * [QueueUsing2Stacks](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Queue/QueueUsing2Stacks.js) + * [Queue](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Queue/Queue.js) + * [QueueUsing2Stacks](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Queue/QueueUsing2Stacks.js) * Stack - * [Stack](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Stack/Stack.js) + * [Stack](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Stack/Stack.js) * Tree - * [Binary Search Tree](https://github.com/TheAlgorithms/Javascript/blob/master/Data%20Structures/Tree/Binary%20Search%20Tree.js) + * [BinarySearchTree](https://github.com/TheAlgorithms/Javascript/blob/master/Data-Structures/Tree/BinarySearchTree.js) ## Hashes * [SHA1](https://github.com/TheAlgorithms/Javascript/blob/master/Hashes/SHA1.js) * [SHA256](https://github.com/TheAlgorithms/Javascript/blob/master/Hashes/SHA256.js) -## linear-algebra-javascript +## Linear-Algebra-Javascript * src - * [la lib](https://github.com/TheAlgorithms/Javascript/blob/master/linear-algebra-javascript/src/la_lib.js) + * [la lib](https://github.com/TheAlgorithms/Javascript/blob/master/Linear-Algebra-Javascript/src/la_lib.js) * test - * [test](https://github.com/TheAlgorithms/Javascript/blob/master/linear-algebra-javascript/test/test.js) + * [test](https://github.com/TheAlgorithms/Javascript/blob/master/Linear-Algebra-Javascript/test/test.js) -## maths - * [abs](https://github.com/TheAlgorithms/Javascript/blob/master/maths/abs.js) - * [average mean](https://github.com/TheAlgorithms/Javascript/blob/master/maths/average_mean.js) - * [DijkstraSmallestPath](https://github.com/TheAlgorithms/Javascript/blob/master/maths/DijkstraSmallestPath.js) - * [factorial](https://github.com/TheAlgorithms/Javascript/blob/master/maths/factorial.js) - * [Fibonacci](https://github.com/TheAlgorithms/Javascript/blob/master/maths/Fibonacci.js) - * [find lcm](https://github.com/TheAlgorithms/Javascript/blob/master/maths/find_lcm.js) - * [FindHcf](https://github.com/TheAlgorithms/Javascript/blob/master/maths/FindHcf.js) - * [graph](https://github.com/TheAlgorithms/Javascript/blob/master/maths/graph.js) - * [Palindrome](https://github.com/TheAlgorithms/Javascript/blob/master/maths/Palindrome.js) - * [pascalTriangle](https://github.com/TheAlgorithms/Javascript/blob/master/maths/pascalTriangle.js) +## Maths + * [Abs](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/Abs.js) + * [AverageMean](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/AverageMean.js) + * [DijkstraSmallestPath](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/DijkstraSmallestPath.js) + * [Factorial](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/Factorial.js) + * [Fibonacci](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/Fibonacci.js) + * [FindHcf](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/FindHcf.js) + * [FindLcm](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/FindLcm.js) + * [Graph](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/Graph.js) + * [Palindrome](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/Palindrome.js) + * [PascalTriangle](https://github.com/TheAlgorithms/Javascript/blob/master/Maths/PascalTriangle.js) ## Search - * [binarySearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/binarySearch.js) - * [jumpSearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/jumpSearch.js) - * [linearSearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/linearSearch.js) + * [BinarySearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/BinarySearch.js) + * [JumpSearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/JumpSearch.js) + * [LinearSearch](https://github.com/TheAlgorithms/Javascript/blob/master/Search/LinearSearch.js) ## Sorts - * [bogoSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/bogoSort.js) - * [bubblesort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/bubblesort.js) - * [bucketSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/bucketSort.js) - * [cocktailShakerSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/cocktailShakerSort.js) - * [combSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/combSort.js) - * [countingSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/countingSort.js) - * [cycleSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/cycleSort.js) - * [flashSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/flashSort.js) - * [gnomeSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/gnomeSort.js) - * [heapSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/heapSort.js) - * [insertionSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/insertionSort.js) - * [mergeSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/mergeSort.js) - * [quickSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/quickSort.js) - * [radixSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/radixSort.js) - * [selectionSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/selectionSort.js) - * [shellSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/shellSort.js) + * [BogoSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/BogoSort.js) + * [BubbleSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/BubbleSort.js) + * [BucketSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/BucketSort.js) + * [CocktailShakerSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/CocktailShakerSort.js) + * [CombSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/CombSort.js) + * [CountingSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/CountingSort.js) + * [CycleSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/CycleSort.js) + * [FlashSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/FlashSort.js) + * [GnomeSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/GnomeSort.js) + * [HeapSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/HeapSort.js) + * [InsertionSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/InsertionSort.js) + * [MergeSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/MergeSort.js) + * [QuickSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/QuickSort.js) + * [RadixSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/RadixSort.js) + * [SelectionSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/SelectionSort.js) + * [ShellSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/ShellSort.js) * [TopologicalSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/TopologicalSort.js) - * [wiggleSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/wiggleSort.js) + * [WiggleSort](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/WiggleSort.js) diff --git a/Data Structures/Graph/Graph.js b/Data-Structures/Graph/Graph.js similarity index 100% rename from Data Structures/Graph/Graph.js rename to Data-Structures/Graph/Graph.js diff --git a/Data Structures/Heap/MinPriorityQueue.js b/Data-Structures/Heap/MinPriorityQueue.js similarity index 100% rename from Data Structures/Heap/MinPriorityQueue.js rename to Data-Structures/Heap/MinPriorityQueue.js diff --git a/Data Structures/Linked List/DoublyLinkedList.js b/Data-Structures/Linked-List/DoublyLinkedList.js similarity index 100% rename from Data Structures/Linked List/DoublyLinkedList.js rename to Data-Structures/Linked-List/DoublyLinkedList.js diff --git a/Data Structures/Linked List/singlylinklist.js b/Data-Structures/Linked-List/SinglyLinkList.js similarity index 100% rename from Data Structures/Linked List/singlylinklist.js rename to Data-Structures/Linked-List/SinglyLinkList.js diff --git a/Data Structures/Queue/Queue.js b/Data-Structures/Queue/Queue.js similarity index 100% rename from Data Structures/Queue/Queue.js rename to Data-Structures/Queue/Queue.js diff --git a/Data Structures/Queue/QueueUsing2Stacks.js b/Data-Structures/Queue/QueueUsing2Stacks.js similarity index 100% rename from Data Structures/Queue/QueueUsing2Stacks.js rename to Data-Structures/Queue/QueueUsing2Stacks.js diff --git a/Data Structures/Stack/Stack.js b/Data-Structures/Stack/Stack.js similarity index 100% rename from Data Structures/Stack/Stack.js rename to Data-Structures/Stack/Stack.js diff --git a/Data Structures/Tree/Binary Search Tree.js b/Data-Structures/Tree/BinarySearchTree.js similarity index 100% rename from Data Structures/Tree/Binary Search Tree.js rename to Data-Structures/Tree/BinarySearchTree.js diff --git a/linear-algebra-javascript/README.md b/Linear-Algebra-Javascript/README.md similarity index 100% rename from linear-algebra-javascript/README.md rename to Linear-Algebra-Javascript/README.md diff --git a/linear-algebra-javascript/package-lock.json b/Linear-Algebra-Javascript/package-lock.json similarity index 100% rename from linear-algebra-javascript/package-lock.json rename to Linear-Algebra-Javascript/package-lock.json diff --git a/linear-algebra-javascript/package.json b/Linear-Algebra-Javascript/package.json similarity index 100% rename from linear-algebra-javascript/package.json rename to Linear-Algebra-Javascript/package.json diff --git a/linear-algebra-javascript/src/la_lib.js b/Linear-Algebra-Javascript/src/la_lib.js similarity index 100% rename from linear-algebra-javascript/src/la_lib.js rename to Linear-Algebra-Javascript/src/la_lib.js diff --git a/linear-algebra-javascript/src/la_lib.ts b/Linear-Algebra-Javascript/src/la_lib.ts similarity index 100% rename from linear-algebra-javascript/src/la_lib.ts rename to Linear-Algebra-Javascript/src/la_lib.ts diff --git a/linear-algebra-javascript/test/test.js b/Linear-Algebra-Javascript/test/test.js similarity index 100% rename from linear-algebra-javascript/test/test.js rename to Linear-Algebra-Javascript/test/test.js diff --git a/maths/abs.js b/Maths/Abs.js similarity index 100% rename from maths/abs.js rename to Maths/Abs.js diff --git a/maths/average_mean.js b/Maths/AverageMean.js similarity index 100% rename from maths/average_mean.js rename to Maths/AverageMean.js diff --git a/maths/DijkstraSmallestPath.js b/Maths/DijkstraSmallestPath.js similarity index 100% rename from maths/DijkstraSmallestPath.js rename to Maths/DijkstraSmallestPath.js diff --git a/maths/factorial.js b/Maths/Factorial.js similarity index 100% rename from maths/factorial.js rename to Maths/Factorial.js diff --git a/maths/Fibonacci.js b/Maths/Fibonacci.js similarity index 100% rename from maths/Fibonacci.js rename to Maths/Fibonacci.js diff --git a/maths/FindHcf.js b/Maths/FindHcf.js similarity index 100% rename from maths/FindHcf.js rename to Maths/FindHcf.js diff --git a/maths/find_lcm.js b/Maths/FindLcm.js similarity index 100% rename from maths/find_lcm.js rename to Maths/FindLcm.js diff --git a/maths/graph.js b/Maths/Graph.js similarity index 100% rename from maths/graph.js rename to Maths/Graph.js diff --git a/maths/Palindrome.js b/Maths/Palindrome.js similarity index 100% rename from maths/Palindrome.js rename to Maths/Palindrome.js diff --git a/maths/pascalTriangle.js b/Maths/PascalTriangle.js similarity index 100% rename from maths/pascalTriangle.js rename to Maths/PascalTriangle.js diff --git a/Search/binarySearch.js b/Search/BinarySearch.js similarity index 100% rename from Search/binarySearch.js rename to Search/BinarySearch.js diff --git a/Search/jumpSearch.js b/Search/JumpSearch.js similarity index 100% rename from Search/jumpSearch.js rename to Search/JumpSearch.js diff --git a/Search/linearSearch.js b/Search/LinearSearch.js similarity index 100% rename from Search/linearSearch.js rename to Search/LinearSearch.js diff --git a/Sorts/bogoSort.js b/Sorts/BogoSort.js similarity index 100% rename from Sorts/bogoSort.js rename to Sorts/BogoSort.js diff --git a/Sorts/bubblesort.js b/Sorts/BubbleSort.js similarity index 100% rename from Sorts/bubblesort.js rename to Sorts/BubbleSort.js diff --git a/Sorts/bucketSort.js b/Sorts/BucketSort.js similarity index 100% rename from Sorts/bucketSort.js rename to Sorts/BucketSort.js diff --git a/Sorts/cocktailShakerSort.js b/Sorts/CocktailShakerSort.js similarity index 100% rename from Sorts/cocktailShakerSort.js rename to Sorts/CocktailShakerSort.js diff --git a/Sorts/combSort.js b/Sorts/CombSort.js similarity index 100% rename from Sorts/combSort.js rename to Sorts/CombSort.js diff --git a/Sorts/countingSort.js b/Sorts/CountingSort.js similarity index 100% rename from Sorts/countingSort.js rename to Sorts/CountingSort.js diff --git a/Sorts/cycleSort.js b/Sorts/CycleSort.js similarity index 100% rename from Sorts/cycleSort.js rename to Sorts/CycleSort.js diff --git a/Sorts/flashSort.js b/Sorts/FlashSort.js similarity index 100% rename from Sorts/flashSort.js rename to Sorts/FlashSort.js diff --git a/Sorts/gnomeSort.js b/Sorts/GnomeSort.js similarity index 100% rename from Sorts/gnomeSort.js rename to Sorts/GnomeSort.js diff --git a/Sorts/heapSort.js b/Sorts/HeapSort.js similarity index 100% rename from Sorts/heapSort.js rename to Sorts/HeapSort.js diff --git a/Sorts/insertionSort.js b/Sorts/InsertionSort.js similarity index 100% rename from Sorts/insertionSort.js rename to Sorts/InsertionSort.js diff --git a/Sorts/mergeSort.js b/Sorts/MergeSort.js similarity index 100% rename from Sorts/mergeSort.js rename to Sorts/MergeSort.js diff --git a/Sorts/quickSort.js b/Sorts/QuickSort.js similarity index 100% rename from Sorts/quickSort.js rename to Sorts/QuickSort.js diff --git a/Sorts/radixSort.js b/Sorts/RadixSort.js similarity index 100% rename from Sorts/radixSort.js rename to Sorts/RadixSort.js diff --git a/Sorts/selectionSort.js b/Sorts/SelectionSort.js similarity index 100% rename from Sorts/selectionSort.js rename to Sorts/SelectionSort.js diff --git a/Sorts/shellSort.js b/Sorts/ShellSort.js similarity index 100% rename from Sorts/shellSort.js rename to Sorts/ShellSort.js diff --git a/Sorts/wiggleSort.js b/Sorts/WiggleSort.js similarity index 100% rename from Sorts/wiggleSort.js rename to Sorts/WiggleSort.js