From c21a573a7a36265e573e706afe8812a19c64c7f6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 16 Apr 2021 14:30:30 +0200 Subject: [PATCH] chore: Migrate JavaScript to new directory structure (#211) * chore: Migrate JavaScript to new directory structure * chore: Migrate JavaScript to new directory structure * Fix typo discovered by codespell --- algorithms/JavaScript/README.md | 21 +++++++++++++++++++ .../JavaScript/arrays}/count-inversions.js | 0 .../JavaScript/linked-lists}/singly.js | 0 .../searching}/binary-search-recursive.js | 0 .../JavaScript/searching}/binary-search.js | 0 .../JavaScript/searching}/linear-search.js | 0 .../JavaScript/sorting}/bubble-sort.js | 0 .../JavaScript/sorting}/insertion-sort.js | 0 .../JavaScript/sorting}/selection-sort.js | 0 .../JavaScript/strings}/palindrome.js | 0 .../JavaScript/strings}/sequence.js | 0 11 files changed, 21 insertions(+) create mode 100644 algorithms/JavaScript/README.md rename {arrays/js => algorithms/JavaScript/arrays}/count-inversions.js (100%) rename {linked-lists/js => algorithms/JavaScript/linked-lists}/singly.js (100%) rename {searching/js => algorithms/JavaScript/searching}/binary-search-recursive.js (100%) rename {searching/js => algorithms/JavaScript/searching}/binary-search.js (100%) rename {searching/js => algorithms/JavaScript/searching}/linear-search.js (100%) rename {sorting/js => algorithms/JavaScript/sorting}/bubble-sort.js (100%) rename {sorting/js => algorithms/JavaScript/sorting}/insertion-sort.js (100%) rename {sorting/js => algorithms/JavaScript/sorting}/selection-sort.js (100%) rename {strings/js => algorithms/JavaScript/strings}/palindrome.js (100%) rename {strings/js => algorithms/JavaScript/strings}/sequence.js (100%) diff --git a/algorithms/JavaScript/README.md b/algorithms/JavaScript/README.md new file mode 100644 index 00000000..6e7fc0c8 --- /dev/null +++ b/algorithms/JavaScript/README.md @@ -0,0 +1,21 @@ +# JavaScript + +## Arrays +1. [Count Inversions](arrays/count-inversions.js) + +## Linked Lists +1. [Singly](linked_lists/singly.js) + +## Searching +1. [Binary Search Recursive](searching/binary-search-recursive.js) +2. [Binary Search](searching/binary-search.js) +3. [Linear Search](searching/linear-search.js) + +## Sorting +1. [Bubble Sort](sorting/bubble-sort.js) +2. [Insertion Sort](sorting/insertion-sort.js) +3. [Selection Sort](sorting/selection-sort.js) + +## Strings +1. [Palindrome](strings/palindrome.js) +2. [Sequence](strings/sequence.js) diff --git a/arrays/js/count-inversions.js b/algorithms/JavaScript/arrays/count-inversions.js similarity index 100% rename from arrays/js/count-inversions.js rename to algorithms/JavaScript/arrays/count-inversions.js diff --git a/linked-lists/js/singly.js b/algorithms/JavaScript/linked-lists/singly.js similarity index 100% rename from linked-lists/js/singly.js rename to algorithms/JavaScript/linked-lists/singly.js diff --git a/searching/js/binary-search-recursive.js b/algorithms/JavaScript/searching/binary-search-recursive.js similarity index 100% rename from searching/js/binary-search-recursive.js rename to algorithms/JavaScript/searching/binary-search-recursive.js diff --git a/searching/js/binary-search.js b/algorithms/JavaScript/searching/binary-search.js similarity index 100% rename from searching/js/binary-search.js rename to algorithms/JavaScript/searching/binary-search.js diff --git a/searching/js/linear-search.js b/algorithms/JavaScript/searching/linear-search.js similarity index 100% rename from searching/js/linear-search.js rename to algorithms/JavaScript/searching/linear-search.js diff --git a/sorting/js/bubble-sort.js b/algorithms/JavaScript/sorting/bubble-sort.js similarity index 100% rename from sorting/js/bubble-sort.js rename to algorithms/JavaScript/sorting/bubble-sort.js diff --git a/sorting/js/insertion-sort.js b/algorithms/JavaScript/sorting/insertion-sort.js similarity index 100% rename from sorting/js/insertion-sort.js rename to algorithms/JavaScript/sorting/insertion-sort.js diff --git a/sorting/js/selection-sort.js b/algorithms/JavaScript/sorting/selection-sort.js similarity index 100% rename from sorting/js/selection-sort.js rename to algorithms/JavaScript/sorting/selection-sort.js diff --git a/strings/js/palindrome.js b/algorithms/JavaScript/strings/palindrome.js similarity index 100% rename from strings/js/palindrome.js rename to algorithms/JavaScript/strings/palindrome.js diff --git a/strings/js/sequence.js b/algorithms/JavaScript/strings/sequence.js similarity index 100% rename from strings/js/sequence.js rename to algorithms/JavaScript/strings/sequence.js