data-structure-typed 1.34.8 → 1.34.9
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/.eslintrc.js +1 -0
- package/CHANGELOG.md +1 -1
- package/CONTRIBUTING.md +0 -0
- package/README.md +8 -8
- package/dist/data-structures/binary-tree/aa-tree.js +2 -5
- package/dist/data-structures/binary-tree/aa-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/abstract-binary-tree.js +280 -423
- package/dist/data-structures/binary-tree/abstract-binary-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/avl-tree.js +63 -89
- package/dist/data-structures/binary-tree/avl-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/b-tree.js +2 -5
- package/dist/data-structures/binary-tree/b-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/binary-indexed-tree.js +17 -22
- package/dist/data-structures/binary-tree/binary-indexed-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/binary-tree.js +11 -30
- package/dist/data-structures/binary-tree/binary-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/bst.js +127 -214
- package/dist/data-structures/binary-tree/bst.js.map +1 -1
- package/dist/data-structures/binary-tree/rb-tree.js +19 -43
- package/dist/data-structures/binary-tree/rb-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/segment-tree.js +80 -122
- package/dist/data-structures/binary-tree/segment-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/splay-tree.js +2 -5
- package/dist/data-structures/binary-tree/splay-tree.js.map +1 -1
- package/dist/data-structures/binary-tree/tree-multiset.js +147 -218
- package/dist/data-structures/binary-tree/tree-multiset.js.map +1 -1
- package/dist/data-structures/binary-tree/two-three-tree.js +2 -5
- package/dist/data-structures/binary-tree/two-three-tree.js.map +1 -1
- package/dist/data-structures/graph/abstract-graph.js +338 -572
- package/dist/data-structures/graph/abstract-graph.js.map +1 -1
- package/dist/data-structures/graph/directed-graph.js +145 -275
- package/dist/data-structures/graph/directed-graph.js.map +1 -1
- package/dist/data-structures/graph/map-graph.js +46 -87
- package/dist/data-structures/graph/map-graph.js.map +1 -1
- package/dist/data-structures/graph/undirected-graph.js +90 -179
- package/dist/data-structures/graph/undirected-graph.js.map +1 -1
- package/dist/data-structures/hash/coordinate-map.js +23 -45
- package/dist/data-structures/hash/coordinate-map.js.map +1 -1
- package/dist/data-structures/hash/coordinate-set.js +20 -42
- package/dist/data-structures/hash/coordinate-set.js.map +1 -1
- package/dist/data-structures/hash/hash-map.js +85 -247
- package/dist/data-structures/hash/hash-map.js.map +1 -1
- package/dist/data-structures/hash/hash-table.js +87 -128
- package/dist/data-structures/hash/hash-table.js.map +1 -1
- package/dist/data-structures/hash/pair.js +2 -5
- package/dist/data-structures/hash/pair.js.map +1 -1
- package/dist/data-structures/hash/tree-map.js +2 -5
- package/dist/data-structures/hash/tree-map.js.map +1 -1
- package/dist/data-structures/hash/tree-set.js +2 -5
- package/dist/data-structures/hash/tree-set.js.map +1 -1
- package/dist/data-structures/heap/heap.js +56 -80
- package/dist/data-structures/heap/heap.js.map +1 -1
- package/dist/data-structures/heap/max-heap.js +8 -26
- package/dist/data-structures/heap/max-heap.js.map +1 -1
- package/dist/data-structures/heap/min-heap.js +8 -26
- package/dist/data-structures/heap/min-heap.js.map +1 -1
- package/dist/data-structures/linked-list/doubly-linked-list.js +149 -218
- package/dist/data-structures/linked-list/doubly-linked-list.js.map +1 -1
- package/dist/data-structures/linked-list/singly-linked-list.js +119 -218
- package/dist/data-structures/linked-list/singly-linked-list.js.map +1 -1
- package/dist/data-structures/linked-list/skip-linked-list.js +50 -70
- package/dist/data-structures/linked-list/skip-linked-list.js.map +1 -1
- package/dist/data-structures/matrix/matrix.js +7 -8
- package/dist/data-structures/matrix/matrix.js.map +1 -1
- package/dist/data-structures/matrix/matrix2d.js +57 -70
- package/dist/data-structures/matrix/matrix2d.js.map +1 -1
- package/dist/data-structures/matrix/navigator.js +18 -37
- package/dist/data-structures/matrix/navigator.js.map +1 -1
- package/dist/data-structures/matrix/vector2d.js +63 -84
- package/dist/data-structures/matrix/vector2d.js.map +1 -1
- package/dist/data-structures/priority-queue/max-priority-queue.js +13 -41
- package/dist/data-structures/priority-queue/max-priority-queue.js.map +1 -1
- package/dist/data-structures/priority-queue/min-priority-queue.js +13 -41
- package/dist/data-structures/priority-queue/min-priority-queue.js.map +1 -1
- package/dist/data-structures/priority-queue/priority-queue.js +93 -139
- package/dist/data-structures/priority-queue/priority-queue.js.map +1 -1
- package/dist/data-structures/queue/deque.js +82 -128
- package/dist/data-structures/queue/deque.js.map +1 -1
- package/dist/data-structures/queue/queue.js +57 -157
- package/dist/data-structures/queue/queue.js.map +1 -1
- package/dist/data-structures/stack/stack.js +21 -22
- package/dist/data-structures/stack/stack.js.map +1 -1
- package/dist/data-structures/tree/tree.js +32 -45
- package/dist/data-structures/tree/tree.js.map +1 -1
- package/dist/data-structures/trie/trie.js +93 -200
- package/dist/data-structures/trie/trie.js.map +1 -1
- package/dist/types/data-structures/abstract-binary-tree.js.map +1 -1
- package/dist/utils/utils.js +22 -107
- package/dist/utils/utils.js.map +1 -1
- package/lib/data-structures/binary-tree/abstract-binary-tree.d.ts +79 -78
- package/lib/data-structures/binary-tree/abstract-binary-tree.js +61 -141
- package/lib/data-structures/binary-tree/avl-tree.d.ts +9 -0
- package/lib/data-structures/binary-tree/avl-tree.js +22 -0
- package/lib/data-structures/binary-tree/bst.d.ts +3 -3
- package/lib/data-structures/binary-tree/bst.js +12 -15
- package/lib/data-structures/binary-tree/tree-multiset.d.ts +16 -18
- package/lib/data-structures/binary-tree/tree-multiset.js +26 -36
- package/lib/data-structures/graph/abstract-graph.d.ts +2 -2
- package/lib/data-structures/graph/abstract-graph.js +5 -5
- package/lib/data-structures/priority-queue/priority-queue.d.ts +3 -3
- package/lib/data-structures/priority-queue/priority-queue.js +3 -3
- package/lib/interfaces/abstract-binary-tree.d.ts +23 -28
- package/lib/interfaces/avl-tree.d.ts +3 -1
- package/lib/interfaces/bst.d.ts +2 -1
- package/lib/types/data-structures/abstract-binary-tree.js +0 -1
- package/package.json +6 -6
- package/src/data-structures/binary-tree/abstract-binary-tree.ts +151 -203
- package/src/data-structures/binary-tree/avl-tree.ts +29 -0
- package/src/data-structures/binary-tree/bst.ts +12 -15
- package/src/data-structures/binary-tree/tree-multiset.ts +27 -39
- package/src/data-structures/graph/abstract-graph.ts +5 -5
- package/src/data-structures/priority-queue/priority-queue.ts +3 -3
- package/src/interfaces/abstract-binary-tree.ts +23 -36
- package/src/interfaces/avl-tree.ts +3 -1
- package/src/interfaces/bst.ts +1 -1
- package/src/types/data-structures/abstract-binary-tree.ts +0 -1
- package/test/integration/avl-tree.test.ts +24 -24
- package/test/integration/bst.test.ts +71 -71
- package/test/unit/data-structures/binary-tree/avl-tree.test.ts +4 -4
- package/test/unit/data-structures/binary-tree/binary-tree.test.ts +1 -9
- package/test/unit/data-structures/binary-tree/bst.test.ts +8 -8
- package/test/unit/data-structures/binary-tree/overall.test.ts +1 -1
- package/test/unit/data-structures/binary-tree/tree-multiset.test.ts +9 -9
- package/test/unit/data-structures/priority-queue/priority-queue.test.ts +4 -4
- package/umd/bundle.min.js +1 -1
- package/umd/bundle.min.js.map +1 -1
|
@@ -1,136 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Trie = exports.TrieNode = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
class TrieNode {
|
|
5
|
+
constructor(v) {
|
|
17
6
|
this._val = v;
|
|
18
7
|
this._isEnd = false;
|
|
19
8
|
this._children = new Map();
|
|
20
9
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(TrieNode.prototype, "isEnd", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this._isEnd;
|
|
44
|
-
},
|
|
45
|
-
set: function (v) {
|
|
46
|
-
this._isEnd = v;
|
|
47
|
-
},
|
|
48
|
-
enumerable: false,
|
|
49
|
-
configurable: true
|
|
50
|
-
});
|
|
51
|
-
return TrieNode;
|
|
52
|
-
}());
|
|
10
|
+
get val() {
|
|
11
|
+
return this._val;
|
|
12
|
+
}
|
|
13
|
+
set val(v) {
|
|
14
|
+
this._val = v;
|
|
15
|
+
}
|
|
16
|
+
get children() {
|
|
17
|
+
return this._children;
|
|
18
|
+
}
|
|
19
|
+
set children(v) {
|
|
20
|
+
this._children = v;
|
|
21
|
+
}
|
|
22
|
+
get isEnd() {
|
|
23
|
+
return this._isEnd;
|
|
24
|
+
}
|
|
25
|
+
set isEnd(v) {
|
|
26
|
+
this._isEnd = v;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
53
29
|
exports.TrieNode = TrieNode;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var e_1, _a;
|
|
30
|
+
class Trie {
|
|
31
|
+
constructor(words) {
|
|
57
32
|
this._root = new TrieNode('');
|
|
58
33
|
if (words) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var i = words_1_1.value;
|
|
62
|
-
this.add(i);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (words_1_1 && !words_1_1.done && (_a = words_1.return)) _a.call(words_1);
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
34
|
+
for (const i of words) {
|
|
35
|
+
this.add(i);
|
|
71
36
|
}
|
|
72
37
|
}
|
|
73
38
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var c = word_1_1.value;
|
|
90
|
-
var nodeC = cur.children.get(c);
|
|
91
|
-
if (!nodeC) {
|
|
92
|
-
nodeC = new TrieNode(c);
|
|
93
|
-
cur.children.set(c, nodeC);
|
|
94
|
-
}
|
|
95
|
-
cur = nodeC;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
99
|
-
finally {
|
|
100
|
-
try {
|
|
101
|
-
if (word_1_1 && !word_1_1.done && (_a = word_1.return)) _a.call(word_1);
|
|
102
|
-
}
|
|
103
|
-
finally { if (e_2) throw e_2.error; }
|
|
39
|
+
get root() {
|
|
40
|
+
return this._root;
|
|
41
|
+
}
|
|
42
|
+
set root(v) {
|
|
43
|
+
this._root = v;
|
|
44
|
+
}
|
|
45
|
+
add(word) {
|
|
46
|
+
let cur = this._root;
|
|
47
|
+
for (const c of word) {
|
|
48
|
+
let nodeC = cur.children.get(c);
|
|
49
|
+
if (!nodeC) {
|
|
50
|
+
nodeC = new TrieNode(c);
|
|
51
|
+
cur.children.set(c, nodeC);
|
|
52
|
+
}
|
|
53
|
+
cur = nodeC;
|
|
104
54
|
}
|
|
105
55
|
cur.isEnd = true;
|
|
106
56
|
return true;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (!nodeC)
|
|
116
|
-
return false;
|
|
117
|
-
cur = nodeC;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
121
|
-
finally {
|
|
122
|
-
try {
|
|
123
|
-
if (input_1_1 && !input_1_1.done && (_a = input_1.return)) _a.call(input_1);
|
|
124
|
-
}
|
|
125
|
-
finally { if (e_3) throw e_3.error; }
|
|
57
|
+
}
|
|
58
|
+
has(input) {
|
|
59
|
+
let cur = this._root;
|
|
60
|
+
for (const c of input) {
|
|
61
|
+
const nodeC = cur.children.get(c);
|
|
62
|
+
if (!nodeC)
|
|
63
|
+
return false;
|
|
64
|
+
cur = nodeC;
|
|
126
65
|
}
|
|
127
66
|
return cur.isEnd;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
67
|
+
}
|
|
68
|
+
remove(word) {
|
|
69
|
+
let isDeleted = false;
|
|
70
|
+
const dfs = (cur, i) => {
|
|
71
|
+
const char = word[i];
|
|
72
|
+
const child = cur.children.get(char);
|
|
134
73
|
if (child) {
|
|
135
74
|
if (i === word.length - 1) {
|
|
136
75
|
if (child.isEnd) {
|
|
@@ -145,7 +84,7 @@ var Trie = (function () {
|
|
|
145
84
|
}
|
|
146
85
|
return false;
|
|
147
86
|
}
|
|
148
|
-
|
|
87
|
+
const res = dfs(child, i + 1);
|
|
149
88
|
if (res && !cur.isEnd && child.children.size === 0) {
|
|
150
89
|
cur.children.delete(char);
|
|
151
90
|
return true;
|
|
@@ -156,52 +95,30 @@ var Trie = (function () {
|
|
|
156
95
|
};
|
|
157
96
|
dfs(this.root, 0);
|
|
158
97
|
return isDeleted;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
if (!nodeC)
|
|
168
|
-
return false;
|
|
169
|
-
cur = nodeC;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
173
|
-
finally {
|
|
174
|
-
try {
|
|
175
|
-
if (input_2_1 && !input_2_1.done && (_a = input_2.return)) _a.call(input_2);
|
|
176
|
-
}
|
|
177
|
-
finally { if (e_4) throw e_4.error; }
|
|
98
|
+
}
|
|
99
|
+
isAbsPrefix(input) {
|
|
100
|
+
let cur = this._root;
|
|
101
|
+
for (const c of input) {
|
|
102
|
+
const nodeC = cur.children.get(c);
|
|
103
|
+
if (!nodeC)
|
|
104
|
+
return false;
|
|
105
|
+
cur = nodeC;
|
|
178
106
|
}
|
|
179
107
|
return !cur.isEnd;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (!nodeC)
|
|
189
|
-
return false;
|
|
190
|
-
cur = nodeC;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
194
|
-
finally {
|
|
195
|
-
try {
|
|
196
|
-
if (input_3_1 && !input_3_1.done && (_a = input_3.return)) _a.call(input_3);
|
|
197
|
-
}
|
|
198
|
-
finally { if (e_5) throw e_5.error; }
|
|
108
|
+
}
|
|
109
|
+
isPrefix(input) {
|
|
110
|
+
let cur = this._root;
|
|
111
|
+
for (const c of input) {
|
|
112
|
+
const nodeC = cur.children.get(c);
|
|
113
|
+
if (!nodeC)
|
|
114
|
+
return false;
|
|
115
|
+
cur = nodeC;
|
|
199
116
|
}
|
|
200
117
|
return true;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
118
|
+
}
|
|
119
|
+
isCommonPrefix(input) {
|
|
120
|
+
let commonPre = '';
|
|
121
|
+
const dfs = (cur) => {
|
|
205
122
|
commonPre += cur.val;
|
|
206
123
|
if (commonPre === input)
|
|
207
124
|
return;
|
|
@@ -214,10 +131,10 @@ var Trie = (function () {
|
|
|
214
131
|
};
|
|
215
132
|
dfs(this._root);
|
|
216
133
|
return commonPre === input;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
134
|
+
}
|
|
135
|
+
getLongestCommonPrefix() {
|
|
136
|
+
let commonPre = '';
|
|
137
|
+
const dfs = (cur) => {
|
|
221
138
|
commonPre += cur.val;
|
|
222
139
|
if (cur.isEnd)
|
|
223
140
|
return;
|
|
@@ -228,55 +145,31 @@ var Trie = (function () {
|
|
|
228
145
|
};
|
|
229
146
|
dfs(this._root);
|
|
230
147
|
return commonPre;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
if (prefix === void 0) { prefix = ''; }
|
|
235
|
-
var words = [];
|
|
148
|
+
}
|
|
149
|
+
getAll(prefix = '') {
|
|
150
|
+
const words = [];
|
|
236
151
|
function dfs(node, word) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
var charNode = node.children.get(char);
|
|
242
|
-
if (charNode !== undefined) {
|
|
243
|
-
dfs(charNode, word.concat(char));
|
|
244
|
-
}
|
|
152
|
+
for (const char of node.children.keys()) {
|
|
153
|
+
const charNode = node.children.get(char);
|
|
154
|
+
if (charNode !== undefined) {
|
|
155
|
+
dfs(charNode, word.concat(char));
|
|
245
156
|
}
|
|
246
157
|
}
|
|
247
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
248
|
-
finally {
|
|
249
|
-
try {
|
|
250
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
251
|
-
}
|
|
252
|
-
finally { if (e_7) throw e_7.error; }
|
|
253
|
-
}
|
|
254
158
|
if (node.isEnd) {
|
|
255
159
|
words.push(word);
|
|
256
160
|
}
|
|
257
161
|
}
|
|
258
|
-
|
|
162
|
+
let startNode = this._root;
|
|
259
163
|
if (prefix) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (nodeC)
|
|
265
|
-
startNode = nodeC;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
269
|
-
finally {
|
|
270
|
-
try {
|
|
271
|
-
if (prefix_1_1 && !prefix_1_1.done && (_a = prefix_1.return)) _a.call(prefix_1);
|
|
272
|
-
}
|
|
273
|
-
finally { if (e_6) throw e_6.error; }
|
|
164
|
+
for (const c of prefix) {
|
|
165
|
+
const nodeC = startNode.children.get(c);
|
|
166
|
+
if (nodeC)
|
|
167
|
+
startNode = nodeC;
|
|
274
168
|
}
|
|
275
169
|
}
|
|
276
170
|
dfs(startNode, prefix);
|
|
277
171
|
return words;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
}());
|
|
172
|
+
}
|
|
173
|
+
}
|
|
281
174
|
exports.Trie = Trie;
|
|
282
175
|
//# sourceMappingURL=trie.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trie.js","sourceRoot":"","sources":["../../../src/data-structures/trie/trie.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trie.js","sourceRoot":"","sources":["../../../src/data-structures/trie/trie.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IACnB,YAAY,CAAS;QACnB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC/C,CAAC;IAID,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,IAAI,GAAG,CAAC,CAAS;QACf,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAChB,CAAC;IAID,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AAE;gBACtB,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACxC,IAAI,KAAK;oBAAE,SAAS,GAAG,KAAK,CAAC;aAC9B;SACF;QAED,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACvB,OAAO,KAAK,CAAC;IACf,CAAC;CAGF;AAnLD,oBAmLC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-binary-tree.js","sourceRoot":"","sources":["../../../src/types/data-structures/abstract-binary-tree.ts"],"names":[],"mappings":";;;AASA,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;AACzB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;
|
|
1
|
+
{"version":3,"file":"abstract-binary-tree.js","sourceRoot":"","sources":["../../../src/types/data-structures/abstract-binary-tree.ts"],"names":[],"mappings":";;;AASA,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;AACzB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACvB,CAAC,EARW,cAAc,8BAAd,cAAc,QAQzB"}
|
package/dist/utils/utils.js
CHANGED
|
@@ -8,72 +8,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
-
if (!m) return o;
|
|
41
|
-
var i = m.call(o), r, ar = [], e;
|
|
42
|
-
try {
|
|
43
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
-
}
|
|
45
|
-
catch (error) { e = { error: error }; }
|
|
46
|
-
finally {
|
|
47
|
-
try {
|
|
48
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
-
}
|
|
50
|
-
finally { if (e) throw e.error; }
|
|
51
|
-
}
|
|
52
|
-
return ar;
|
|
53
|
-
};
|
|
54
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
55
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
-
if (ar || !(i in from)) {
|
|
57
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
-
ar[i] = from[i];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
-
};
|
|
63
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
12
|
exports.trampolineAsync = exports.trampoline = exports.toThunk = exports.isThunk = exports.THUNK_SYMBOL = exports.arrayRemove = exports.uuidV4 = void 0;
|
|
65
|
-
|
|
13
|
+
const uuidV4 = function () {
|
|
66
14
|
return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {
|
|
67
|
-
|
|
15
|
+
const r = (Math.random() * 16) | 0, v = c == 'x' ? r : (r & 0x3) | 0x8;
|
|
68
16
|
return v.toString(16);
|
|
69
17
|
});
|
|
70
18
|
};
|
|
71
19
|
exports.uuidV4 = uuidV4;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
20
|
+
const arrayRemove = function (array, predicate) {
|
|
21
|
+
let i = -1, len = array ? array.length : 0;
|
|
22
|
+
const result = [];
|
|
75
23
|
while (++i < len) {
|
|
76
|
-
|
|
24
|
+
const value = array[i];
|
|
77
25
|
if (predicate(value, i, array)) {
|
|
78
26
|
result.push(value);
|
|
79
27
|
Array.prototype.splice.call(array, i--, 1);
|
|
@@ -84,69 +32,36 @@ var arrayRemove = function (array, predicate) {
|
|
|
84
32
|
};
|
|
85
33
|
exports.arrayRemove = arrayRemove;
|
|
86
34
|
exports.THUNK_SYMBOL = Symbol('thunk');
|
|
87
|
-
|
|
35
|
+
const isThunk = (fnOrValue) => {
|
|
88
36
|
return typeof fnOrValue === 'function' && fnOrValue.__THUNK__ === exports.THUNK_SYMBOL;
|
|
89
37
|
};
|
|
90
38
|
exports.isThunk = isThunk;
|
|
91
|
-
|
|
92
|
-
|
|
39
|
+
const toThunk = (fn) => {
|
|
40
|
+
const thunk = () => fn();
|
|
93
41
|
thunk.__THUNK__ = exports.THUNK_SYMBOL;
|
|
94
42
|
return thunk;
|
|
95
43
|
};
|
|
96
44
|
exports.toThunk = toThunk;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
args[_i] = arguments[_i];
|
|
102
|
-
}
|
|
103
|
-
return (0, exports.toThunk)(function () { return fn.apply(void 0, __spreadArray([], __read(args), false)); });
|
|
104
|
-
};
|
|
105
|
-
return Object.assign(function () {
|
|
106
|
-
var args = [];
|
|
107
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
108
|
-
args[_i] = arguments[_i];
|
|
109
|
-
}
|
|
110
|
-
var result = fn.apply(void 0, __spreadArray([], __read(args), false));
|
|
45
|
+
const trampoline = (fn) => {
|
|
46
|
+
const cont = (...args) => (0, exports.toThunk)(() => fn(...args));
|
|
47
|
+
return Object.assign((...args) => {
|
|
48
|
+
let result = fn(...args);
|
|
111
49
|
while ((0, exports.isThunk)(result) && typeof result === 'function') {
|
|
112
50
|
result = result();
|
|
113
51
|
}
|
|
114
52
|
return result;
|
|
115
|
-
}, { cont
|
|
53
|
+
}, { cont });
|
|
116
54
|
};
|
|
117
55
|
exports.trampoline = trampoline;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return (0, exports.toThunk)(function () { return fn.apply(void 0, __spreadArray([], __read(args), false)); });
|
|
125
|
-
};
|
|
126
|
-
return Object.assign(function () {
|
|
127
|
-
var args = [];
|
|
128
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
129
|
-
args[_i] = arguments[_i];
|
|
56
|
+
const trampolineAsync = (fn) => {
|
|
57
|
+
const cont = (...args) => (0, exports.toThunk)(() => fn(...args));
|
|
58
|
+
return Object.assign((...args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
let result = yield fn(...args);
|
|
60
|
+
while ((0, exports.isThunk)(result) && typeof result === 'function') {
|
|
61
|
+
result = yield result();
|
|
130
62
|
}
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
return __generator(this, function (_a) {
|
|
134
|
-
switch (_a.label) {
|
|
135
|
-
case 0: return [4, fn.apply(void 0, __spreadArray([], __read(args), false))];
|
|
136
|
-
case 1:
|
|
137
|
-
result = _a.sent();
|
|
138
|
-
_a.label = 2;
|
|
139
|
-
case 2:
|
|
140
|
-
if (!((0, exports.isThunk)(result) && typeof result === 'function')) return [3, 4];
|
|
141
|
-
return [4, result()];
|
|
142
|
-
case 3:
|
|
143
|
-
result = _a.sent();
|
|
144
|
-
return [3, 2];
|
|
145
|
-
case 4: return [2, result];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
}, { cont: cont });
|
|
63
|
+
return result;
|
|
64
|
+
}), { cont });
|
|
150
65
|
};
|
|
151
66
|
exports.trampolineAsync = trampolineAsync;
|
|
152
67
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"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