Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 352d913

Browse files
add index to npm module
1 parent c4482e5 commit 352d913

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

‎notes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Semantic Versioning
2+
3+
This project is using semantic versioning which means that versions has tree numbers:
4+
5+
> Major.Minor.Patch, e.g. 1.3.7
6+
7+
and the meaning the the following:
8+
9+
- Major: breaking (remove functionality or change API)
10+
- Minor: Features (new functionality, adding new topics)
11+
- Patch: Fixes (bug fixes, typos, etc.)
12+
113
# Roadmap
214
- [x] PDF: callouts and emojis are not showing correctly
315
- [x] Writeup on balancing trees

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dsa.js",
33
"version": "1.0.0",
44
"description": "Data Structures & Algorithms in JS",
5-
"main": "./src/data-structures/graphs/graph.js",
5+
"main": "./src/index.js",
66
"dependencies": {
77
"lodash": "4.17.11"
88
},
File renamed without changes.
File renamed without changes.

‎src/index.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// data structures
2+
const LinkedList = require('./data-structures/linked-lists/linked-list');
3+
const Queue = require('./data-structures/queues/queue');
4+
const Stack = require('./data-structures/stacks/stack');
5+
const Graph = require('./data-structures/graphs/graph');
6+
const HashMap = require('./data-structures/maps/hash-maps/hash-map');
7+
const TreeMap = require('./data-structures/maps/tree-maps/tree-map');
8+
const HashSet = require('./data-structures/sets/hash-set');
9+
const TreeSet = require('./data-structures/sets/tree-set');
10+
const BinarySearchTree = require('./data-structures/trees/binary-search-tree');
11+
const AvlTree = require('./data-structures/trees/avl-tree');
12+
const RedBlackTree = require('./data-structures/trees/red-black-tree');
13+
const LRUCache = require('./data-structures/custom/lru-cache');
14+
// algorithms
15+
const bubbleSort = require('./algorithms/sorting/bubble-sort');
16+
const insertionSort = require('./algorithms/sorting/insertion-sort');
17+
const selectionSort = require('./algorithms/sorting/selection-sort');
18+
const quickSort = require('./algorithms/sorting/quick-sort');
19+
const mergeSort = require('./algorithms/sorting/merge-sort');
20+
21+
module.exports = {
22+
LinkedList,
23+
Queue,
24+
Stack,
25+
Graph,
26+
HashMap,
27+
TreeMap,
28+
HashSet,
29+
TreeSet,
30+
BinarySearchTree,
31+
AvlTree,
32+
RedBlackTree,
33+
LRUCache,
34+
bubbleSort,
35+
insertionSort,
36+
selectionSort,
37+
quickSort,
38+
mergeSort,
39+
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /