data-structure-typed 1.33.7 → 1.33.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -14
- package/coverage/coverage-final.json +3 -3
- package/docs/index.html +13 -11
- package/package.json +22 -22
- package/test/integration/index.html +26 -18
package/README.md
CHANGED
|
@@ -2,17 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Data Structures of Javascript & TypeScript.
|
|
4
4
|
|
|
5
|
-
Do you envy
|
|
5
|
+
Do you envy C++ with [std](), Python with [collections](), and Java with [java.util]() ? Well, no need to envy anymore! JavaScript and TypeScript now have [data-structure-typed]().
|
|
6
6
|
|
|
7
7
|
Now you can use this library in Node.js and browser environments in CommonJS(require export.modules = ), ESModule(import export), Typescript(import export), UMD(var Queue = dataStructureTyped.Queue)
|
|
8
8
|
|
|
9
|
+
The size after packaging is 69 kB.
|
|
10
|
+
|
|
9
11
|

|
|
10
12
|

|
|
11
13
|

|
|
12
|
-

|
|
13
14
|

|
|
14
15
|

|
|
15
16
|
|
|
17
|
+
[//]: # ()
|
|
18
|
+
|
|
19
|
+
[//]: # ()
|
|
20
|
+
|
|
21
|
+
[//]: # ()
|
|
22
|
+
|
|
23
|
+
[//]: # ()
|
|
24
|
+
|
|
25
|
+
|
|
16
26
|
## Built-in classic algorithms
|
|
17
27
|
|
|
18
28
|
DFS(Depth-First Search), DFSIterative, BFS(Breadth-First Search), morris, Bellman-Ford Algorithm, Dijkstra's Algorithm,
|
|
@@ -23,7 +33,7 @@ Floyd-Warshall Algorithm, Tarjan's Algorithm.
|
|
|
23
33
|
### npm
|
|
24
34
|
|
|
25
35
|
```bash
|
|
26
|
-
npm i data-structure-typed
|
|
36
|
+
npm i data-structure-typed
|
|
27
37
|
```
|
|
28
38
|
|
|
29
39
|
### yarn
|
|
@@ -32,6 +42,14 @@ npm i data-structure-typed --save
|
|
|
32
42
|
yarn add data-structure-typed
|
|
33
43
|
```
|
|
34
44
|
|
|
45
|
+
```js
|
|
46
|
+
import {
|
|
47
|
+
BinaryTree, Graph, Queue, Stack, PriorityQueue, BST, Trie, DoublyLinkedList,
|
|
48
|
+
AVLTree, MinHeap, SinglyLinkedList, DirectedGraph, TreeMultiset,
|
|
49
|
+
DirectedVertex, AVLTreeNode
|
|
50
|
+
} from 'data-structure-typed';
|
|
51
|
+
```
|
|
52
|
+
|
|
35
53
|
### CDN
|
|
36
54
|
|
|
37
55
|
```html
|
|
@@ -40,18 +58,11 @@ yarn add data-structure-typed
|
|
|
40
58
|
```
|
|
41
59
|
|
|
42
60
|
```js
|
|
43
|
-
const {
|
|
61
|
+
const {Heap} = dataStructureTyped;
|
|
44
62
|
const {
|
|
45
|
-
|
|
46
|
-
MinHeap,
|
|
47
|
-
|
|
48
|
-
Stack,
|
|
49
|
-
AVLTreeNode,
|
|
50
|
-
BST,
|
|
51
|
-
Trie,
|
|
52
|
-
DirectedGraph,
|
|
53
|
-
DirectedVertex,
|
|
54
|
-
TreeMultiset
|
|
63
|
+
BinaryTree, Graph, Queue, Stack, PriorityQueue, BST, Trie, DoublyLinkedList,
|
|
64
|
+
AVLTree, MinHeap, SinglyLinkedList, DirectedGraph, TreeMultiset,
|
|
65
|
+
DirectedVertex, AVLTreeNode
|
|
55
66
|
} = dataStructureTyped;
|
|
56
67
|
```
|
|
57
68
|
|