
Classic and high performance data structures implemented in javascript.
- npm i
- npm run build // for production build
- npm run build:dev // for development build
- babel-node ./src/xx.js // run xx.js
- npm run build:es5 // for node server build
- npm test // run tests
-
Array
-
Binary Tree
-
Generalized List
-
Graph
-
List
-
Queue
-
Stack
-
String
-
Search
-
Heap
-
Sort
-
insertion sort
- straightInsertSort
- binaryInsertSort
- path2InsertSort
- staticLinkedListInsertSort
- shellSort
-
exchange sort
- bubbleSort
- bubbleSort2
- cockTailSort
- cockTailSort2
- quickSortRecursive
- quickSortRecursive2
- quickSortNonRecursive
- quickSort
- oddEvenSort
-
selection sort
- simpleSelectionSort
- heapSort
-
merge sort
- mergeSortRecursive
- mergeSortNonRecursive
- natureMergeSort
- naturalMergeSort
- linkedListNaturalMergeSort
-
distribution sort
- countSort
- radixSort
- bucketSort