data-structure-typed 2.5.3 → 2.6.0
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/.husky/pre-commit +3 -0
- package/CHANGELOG.md +1 -1
- package/MIGRATION.md +48 -0
- package/README.md +20 -2
- package/README_CN.md +20 -2
- package/SPECIFICATION.md +24 -0
- package/SPECIFICATION.zh-CN.md +24 -0
- package/dist/cjs/binary-tree.cjs +1897 -19
- package/dist/cjs/graph.cjs +174 -0
- package/dist/cjs/hash.cjs +33 -0
- package/dist/cjs/heap.cjs +71 -0
- package/dist/cjs/index.cjs +2383 -3
- package/dist/cjs/linked-list.cjs +224 -2
- package/dist/cjs/matrix.cjs +24 -0
- package/dist/cjs/priority-queue.cjs +71 -0
- package/dist/cjs/queue.cjs +221 -1
- package/dist/cjs/stack.cjs +59 -0
- package/dist/cjs/trie.cjs +62 -0
- package/dist/cjs-legacy/binary-tree.cjs +1897 -19
- package/dist/cjs-legacy/graph.cjs +174 -0
- package/dist/cjs-legacy/hash.cjs +33 -0
- package/dist/cjs-legacy/heap.cjs +71 -0
- package/dist/cjs-legacy/index.cjs +2383 -3
- package/dist/cjs-legacy/linked-list.cjs +224 -2
- package/dist/cjs-legacy/matrix.cjs +24 -0
- package/dist/cjs-legacy/priority-queue.cjs +71 -0
- package/dist/cjs-legacy/queue.cjs +221 -1
- package/dist/cjs-legacy/stack.cjs +59 -0
- package/dist/cjs-legacy/trie.cjs +62 -0
- package/dist/esm/binary-tree.mjs +1897 -19
- package/dist/esm/graph.mjs +174 -0
- package/dist/esm/hash.mjs +33 -0
- package/dist/esm/heap.mjs +71 -0
- package/dist/esm/index.mjs +2383 -3
- package/dist/esm/linked-list.mjs +224 -2
- package/dist/esm/matrix.mjs +24 -0
- package/dist/esm/priority-queue.mjs +71 -0
- package/dist/esm/queue.mjs +221 -1
- package/dist/esm/stack.mjs +59 -0
- package/dist/esm/trie.mjs +62 -0
- package/dist/esm-legacy/binary-tree.mjs +1897 -19
- package/dist/esm-legacy/graph.mjs +174 -0
- package/dist/esm-legacy/hash.mjs +33 -0
- package/dist/esm-legacy/heap.mjs +71 -0
- package/dist/esm-legacy/index.mjs +2383 -3
- package/dist/esm-legacy/linked-list.mjs +224 -2
- package/dist/esm-legacy/matrix.mjs +24 -0
- package/dist/esm-legacy/priority-queue.mjs +71 -0
- package/dist/esm-legacy/queue.mjs +221 -1
- package/dist/esm-legacy/stack.mjs +59 -0
- package/dist/esm-legacy/trie.mjs +62 -0
- package/dist/types/data-structures/base/iterable-element-base.d.ts +17 -0
- package/dist/types/data-structures/base/linear-base.d.ts +6 -0
- package/dist/types/data-structures/binary-tree/avl-tree.d.ts +36 -0
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +42 -0
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +75 -0
- package/dist/types/data-structures/binary-tree/bst.d.ts +72 -0
- package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +57 -0
- package/dist/types/data-structures/binary-tree/segment-tree.d.ts +18 -0
- package/dist/types/data-structures/binary-tree/tree-map.d.ts +375 -0
- package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +389 -0
- package/dist/types/data-structures/binary-tree/tree-multi-set.d.ts +330 -0
- package/dist/types/data-structures/binary-tree/tree-set.d.ts +438 -0
- package/dist/types/data-structures/graph/directed-graph.d.ts +30 -0
- package/dist/types/data-structures/graph/undirected-graph.d.ts +27 -0
- package/dist/types/data-structures/hash/hash-map.d.ts +33 -0
- package/dist/types/data-structures/heap/heap.d.ts +42 -0
- package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +75 -2
- package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +45 -0
- package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +54 -0
- package/dist/types/data-structures/matrix/matrix.d.ts +24 -0
- package/dist/types/data-structures/queue/deque.d.ts +90 -1
- package/dist/types/data-structures/queue/queue.d.ts +36 -0
- package/dist/types/data-structures/stack/stack.d.ts +30 -0
- package/dist/types/data-structures/trie/trie.d.ts +36 -0
- package/dist/umd/data-structure-typed.js +2383 -3
- package/dist/umd/data-structure-typed.min.js +3 -3
- package/docs-site-docusaurus/docs/api/classes/LinkedHashMap.md +14 -10
- package/jest.integration.config.js +1 -2
- package/package.json +9 -7
- package/src/data-structures/base/iterable-element-base.ts +32 -0
- package/src/data-structures/base/linear-base.ts +11 -0
- package/src/data-structures/binary-tree/avl-tree.ts +36 -0
- package/src/data-structures/binary-tree/binary-indexed-tree.ts +42 -0
- package/src/data-structures/binary-tree/binary-tree.ts +75 -0
- package/src/data-structures/binary-tree/bst.ts +72 -0
- package/src/data-structures/binary-tree/red-black-tree.ts +57 -0
- package/src/data-structures/binary-tree/segment-tree.ts +18 -0
- package/src/data-structures/binary-tree/tree-map.ts +375 -0
- package/src/data-structures/binary-tree/tree-multi-map.ts +392 -0
- package/src/data-structures/binary-tree/tree-multi-set.ts +336 -0
- package/src/data-structures/binary-tree/tree-set.ts +492 -0
- package/src/data-structures/graph/directed-graph.ts +30 -0
- package/src/data-structures/graph/undirected-graph.ts +27 -0
- package/src/data-structures/hash/hash-map.ts +33 -0
- package/src/data-structures/heap/heap.ts +42 -0
- package/src/data-structures/linked-list/doubly-linked-list.ts +90 -2
- package/src/data-structures/linked-list/singly-linked-list.ts +45 -0
- package/src/data-structures/linked-list/skip-linked-list.ts +54 -0
- package/src/data-structures/matrix/matrix.ts +24 -0
- package/src/data-structures/queue/deque.ts +103 -1
- package/src/data-structures/queue/queue.ts +36 -0
- package/src/data-structures/stack/stack.ts +30 -0
- package/src/data-structures/trie/trie.ts +36 -0
|
@@ -344,7 +344,7 @@ Time O(N), Space O(1)
|
|
|
344
344
|
clear(): void;
|
|
345
345
|
```
|
|
346
346
|
|
|
347
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
347
|
+
Defined in: [data-structures/hash/hash-map.ts:1221](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1221)
|
|
348
348
|
|
|
349
349
|
Remove all entries.
|
|
350
350
|
|
|
@@ -368,7 +368,7 @@ Time O(n) typical, Space O(1)
|
|
|
368
368
|
clone(): this;
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
371
|
+
Defined in: [data-structures/hash/hash-map.ts:1227](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1227)
|
|
372
372
|
|
|
373
373
|
Deep clone preserving the concrete subtype.
|
|
374
374
|
|
|
@@ -391,10 +391,10 @@ Time O(n) typical, Space O(n)
|
|
|
391
391
|
### deleteAt()
|
|
392
392
|
|
|
393
393
|
```ts
|
|
394
|
-
deleteAt(index): [K, V | undefined]
|
|
394
|
+
deleteAt(index): [K, V | undefined];
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
397
|
+
Defined in: [data-structures/hash/hash-map.ts:1204](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1204)
|
|
398
398
|
|
|
399
399
|
Delete the entry at a given index.
|
|
400
400
|
|
|
@@ -408,14 +408,18 @@ Zero-based index.
|
|
|
408
408
|
|
|
409
409
|
#### Returns
|
|
410
410
|
|
|
411
|
-
\[`K`, `V` \| `undefined`\]
|
|
411
|
+
\[`K`, `V` \| `undefined`\]
|
|
412
412
|
|
|
413
|
-
The removed entry [key, value]
|
|
413
|
+
The removed entry [key, value].
|
|
414
414
|
|
|
415
415
|
#### Remarks
|
|
416
416
|
|
|
417
417
|
Time O(N), Space O(1)
|
|
418
418
|
|
|
419
|
+
#### Throws
|
|
420
|
+
|
|
421
|
+
If index is out of bounds.
|
|
422
|
+
|
|
419
423
|
***
|
|
420
424
|
|
|
421
425
|
### deleteWhere()
|
|
@@ -520,7 +524,7 @@ Time O(n), Space O(1)
|
|
|
520
524
|
filter(predicate, thisArg?): this;
|
|
521
525
|
```
|
|
522
526
|
|
|
523
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
527
|
+
Defined in: [data-structures/hash/hash-map.ts:1232](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1232)
|
|
524
528
|
|
|
525
529
|
Filter entries and return the same-species structure.
|
|
526
530
|
|
|
@@ -736,7 +740,7 @@ Time O(n), Space O(1)
|
|
|
736
740
|
isEmpty(): boolean;
|
|
737
741
|
```
|
|
738
742
|
|
|
739
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
743
|
+
Defined in: [data-structures/hash/hash-map.ts:1213](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1213)
|
|
740
744
|
|
|
741
745
|
Whether there are no entries.
|
|
742
746
|
|
|
@@ -788,7 +792,7 @@ Time O(n), Space O(1)
|
|
|
788
792
|
map<MK, MV>(callback, thisArg?): LinkedHashMap<MK, MV>;
|
|
789
793
|
```
|
|
790
794
|
|
|
791
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
795
|
+
Defined in: [data-structures/hash/hash-map.ts:1251](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1251)
|
|
792
796
|
|
|
793
797
|
Map each entry to a new [key, value] pair and preserve order.
|
|
794
798
|
|
|
@@ -1087,7 +1091,7 @@ Time O(n), Space O(1)
|
|
|
1087
1091
|
protected _getIterator(): IterableIterator<[K, V]>;
|
|
1088
1092
|
```
|
|
1089
1093
|
|
|
1090
|
-
Defined in: [data-structures/hash/hash-map.ts:
|
|
1094
|
+
Defined in: [data-structures/hash/hash-map.ts:1262](https://github.com/zrwusa/data-structure-typed/blob/main/src/data-structures/hash/hash-map.ts#L1262)
|
|
1091
1095
|
|
|
1092
1096
|
Underlying iterator for the default iteration protocol.
|
|
1093
1097
|
|
|
@@ -3,8 +3,7 @@ module.exports = {
|
|
|
3
3
|
testEnvironment: 'node',
|
|
4
4
|
testMatch: [
|
|
5
5
|
'<rootDir>/test/integration/**/*.test.ts',
|
|
6
|
-
'<rootDir>/test/integration/**/*.test.js'
|
|
7
|
-
'<rootDir>/test/integration/**/*.test.mjs'
|
|
6
|
+
'<rootDir>/test/integration/**/*.test.js'
|
|
8
7
|
],
|
|
9
8
|
transform: {
|
|
10
9
|
'^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-structure-typed",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Production-ready TypeScript data structures: Heap, Deque, Trie, Graph, Red-Black Tree, TreeMap, TreeSet, and more. Zero dependencies, type-safe, with getRank/getByRank/rangeByRank support.",
|
|
5
5
|
"browser": "dist/umd/data-structure-typed.min.js",
|
|
6
6
|
"umd:main": "dist/umd/data-structure-typed.min.js",
|
|
@@ -168,7 +168,8 @@
|
|
|
168
168
|
"check:exist-latest": "sh scripts/check_exist_remotely.sh",
|
|
169
169
|
"changelog": "auto-changelog",
|
|
170
170
|
"coverage:badge": "istanbul-badges-readme",
|
|
171
|
-
"toc": "doctoc README.md"
|
|
171
|
+
"toc": "doctoc README.md",
|
|
172
|
+
"prepare": "husky"
|
|
172
173
|
},
|
|
173
174
|
"repository": {
|
|
174
175
|
"type": "git",
|
|
@@ -194,11 +195,11 @@
|
|
|
194
195
|
"@typescript-eslint/eslint-plugin": "^8.12.1",
|
|
195
196
|
"@typescript-eslint/parser": "^8.12.1",
|
|
196
197
|
"auto-changelog": "^2.5.0",
|
|
197
|
-
"avl-tree-typed": "^2.5.
|
|
198
|
+
"avl-tree-typed": "^2.5.3",
|
|
198
199
|
"benchmark": "^2.1.4",
|
|
199
|
-
"binary-tree-typed": "^2.5.
|
|
200
|
-
"bst-typed": "^2.5.
|
|
201
|
-
"data-structure-typed": "^2.5.
|
|
200
|
+
"binary-tree-typed": "^2.5.3",
|
|
201
|
+
"bst-typed": "^2.5.3",
|
|
202
|
+
"data-structure-typed": "^2.5.3",
|
|
202
203
|
"dependency-cruiser": "^16.5.0",
|
|
203
204
|
"doctoc": "^2.2.1",
|
|
204
205
|
"eslint": "^9.13.0",
|
|
@@ -207,7 +208,8 @@
|
|
|
207
208
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
208
209
|
"eslint-plugin-import": "^2.31.0",
|
|
209
210
|
"fast-glob": "^3.3.2",
|
|
210
|
-
"heap-typed": "^2.5.
|
|
211
|
+
"heap-typed": "^2.5.3",
|
|
212
|
+
"husky": "^9.1.7",
|
|
211
213
|
"istanbul-badges-readme": "^1.9.0",
|
|
212
214
|
"jest": "^29.7.0",
|
|
213
215
|
"js-sdsl": "^4.4.2",
|
|
@@ -191,6 +191,38 @@ export abstract class IterableElementBase<E, R> implements Iterable<E> {
|
|
|
191
191
|
return false;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Check whether a value exists (Array-compatible alias for `has`).
|
|
196
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
197
|
+
* @param element - Element to search for (uses `===`).
|
|
198
|
+
* @returns `true` if found.
|
|
199
|
+
*/
|
|
200
|
+
includes(element: E): boolean {
|
|
201
|
+
return this.has(element);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Return an iterator of `[index, value]` pairs (Array-compatible).
|
|
206
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
207
|
+
*/
|
|
208
|
+
*entries(): IterableIterator<[number, E]> {
|
|
209
|
+
let index = 0;
|
|
210
|
+
for (const value of this) {
|
|
211
|
+
yield [index++, value];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Return an iterator of numeric indices (Array-compatible).
|
|
217
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
218
|
+
*/
|
|
219
|
+
*keys(): IterableIterator<number> {
|
|
220
|
+
let index = 0;
|
|
221
|
+
for (const _ of this) {
|
|
222
|
+
yield index++;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
194
226
|
reduce(callbackfn: ReduceElementCallback<E, R>): E;
|
|
195
227
|
reduce(callbackfn: ReduceElementCallback<E, R>, initialValue: E): E;
|
|
196
228
|
reduce<U>(callbackfn: ReduceElementCallback<E, R, U>, initialValue: U): U;
|
|
@@ -327,6 +327,17 @@ export abstract class LinearBase<
|
|
|
327
327
|
*/
|
|
328
328
|
abstract reverse(): this;
|
|
329
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Return a new instance of the same type with elements in reverse order (non-mutating).
|
|
332
|
+
* @remarks Provided for familiarity when migrating from Array (ES2023 `toReversed`). Time O(n), Space O(n).
|
|
333
|
+
* @returns A new reversed instance.
|
|
334
|
+
*/
|
|
335
|
+
toReversed(): this {
|
|
336
|
+
const cloned = this.clone();
|
|
337
|
+
cloned.reverse();
|
|
338
|
+
return cloned as this;
|
|
339
|
+
}
|
|
340
|
+
|
|
330
341
|
/**
|
|
331
342
|
* Append one element or node to the tail.
|
|
332
343
|
* @param elementOrNode - Element or node.
|
|
@@ -494,6 +494,18 @@ export class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> implements
|
|
|
494
494
|
|
|
495
495
|
|
|
496
496
|
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
497
509
|
|
|
498
510
|
|
|
499
511
|
|
|
@@ -638,6 +650,15 @@ export class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> implements
|
|
|
638
650
|
|
|
639
651
|
|
|
640
652
|
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
641
662
|
|
|
642
663
|
|
|
643
664
|
|
|
@@ -736,6 +757,12 @@ export class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> implements
|
|
|
736
757
|
|
|
737
758
|
|
|
738
759
|
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
739
766
|
|
|
740
767
|
|
|
741
768
|
|
|
@@ -888,6 +915,15 @@ export class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> implements
|
|
|
888
915
|
|
|
889
916
|
|
|
890
917
|
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
891
927
|
|
|
892
928
|
|
|
893
929
|
|
|
@@ -119,6 +119,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
122
128
|
|
|
123
129
|
|
|
124
130
|
|
|
@@ -204,6 +210,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
204
210
|
|
|
205
211
|
|
|
206
212
|
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
207
219
|
|
|
208
220
|
|
|
209
221
|
|
|
@@ -289,6 +301,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
289
301
|
|
|
290
302
|
|
|
291
303
|
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
292
310
|
|
|
293
311
|
|
|
294
312
|
|
|
@@ -374,6 +392,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
374
392
|
|
|
375
393
|
|
|
376
394
|
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
377
401
|
|
|
378
402
|
|
|
379
403
|
|
|
@@ -457,6 +481,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
457
481
|
|
|
458
482
|
|
|
459
483
|
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
460
490
|
|
|
461
491
|
|
|
462
492
|
|
|
@@ -548,6 +578,12 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
548
578
|
|
|
549
579
|
|
|
550
580
|
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
551
587
|
|
|
552
588
|
|
|
553
589
|
|
|
@@ -608,6 +644,9 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
608
644
|
|
|
609
645
|
|
|
610
646
|
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
611
650
|
|
|
612
651
|
|
|
613
652
|
|
|
@@ -681,6 +720,9 @@ export class BinaryIndexedTree implements Iterable<number> {
|
|
|
681
720
|
|
|
682
721
|
|
|
683
722
|
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
684
726
|
|
|
685
727
|
|
|
686
728
|
|
|
@@ -596,6 +596,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
596
596
|
|
|
597
597
|
|
|
598
598
|
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
599
602
|
|
|
600
603
|
|
|
601
604
|
|
|
@@ -657,6 +660,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
657
660
|
|
|
658
661
|
|
|
659
662
|
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
660
666
|
|
|
661
667
|
|
|
662
668
|
|
|
@@ -780,6 +786,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
780
786
|
|
|
781
787
|
|
|
782
788
|
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
783
792
|
|
|
784
793
|
|
|
785
794
|
|
|
@@ -831,6 +840,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
831
840
|
|
|
832
841
|
|
|
833
842
|
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
834
846
|
|
|
835
847
|
|
|
836
848
|
|
|
@@ -908,6 +920,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
908
920
|
|
|
909
921
|
|
|
910
922
|
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
911
926
|
|
|
912
927
|
|
|
913
928
|
|
|
@@ -1025,6 +1040,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1025
1040
|
|
|
1026
1041
|
|
|
1027
1042
|
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1028
1046
|
|
|
1029
1047
|
|
|
1030
1048
|
|
|
@@ -1070,6 +1088,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1070
1088
|
|
|
1071
1089
|
|
|
1072
1090
|
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1073
1094
|
|
|
1074
1095
|
|
|
1075
1096
|
|
|
@@ -1210,6 +1231,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1210
1231
|
|
|
1211
1232
|
|
|
1212
1233
|
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
|
|
1213
1237
|
|
|
1214
1238
|
|
|
1215
1239
|
|
|
@@ -1289,6 +1313,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1289
1313
|
|
|
1290
1314
|
|
|
1291
1315
|
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1292
1319
|
|
|
1293
1320
|
|
|
1294
1321
|
|
|
@@ -1362,6 +1389,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1362
1389
|
|
|
1363
1390
|
|
|
1364
1391
|
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1365
1395
|
|
|
1366
1396
|
|
|
1367
1397
|
|
|
@@ -1428,6 +1458,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1428
1458
|
|
|
1429
1459
|
|
|
1430
1460
|
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
|
|
1431
1464
|
|
|
1432
1465
|
|
|
1433
1466
|
|
|
@@ -1530,6 +1563,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1530
1563
|
|
|
1531
1564
|
|
|
1532
1565
|
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1533
1569
|
|
|
1534
1570
|
|
|
1535
1571
|
|
|
@@ -1583,6 +1619,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1583
1619
|
|
|
1584
1620
|
|
|
1585
1621
|
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1586
1625
|
|
|
1587
1626
|
|
|
1588
1627
|
|
|
@@ -1648,6 +1687,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1648
1687
|
|
|
1649
1688
|
|
|
1650
1689
|
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1651
1693
|
|
|
1652
1694
|
|
|
1653
1695
|
|
|
@@ -1743,6 +1785,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1743
1785
|
|
|
1744
1786
|
|
|
1745
1787
|
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1746
1791
|
|
|
1747
1792
|
|
|
1748
1793
|
|
|
@@ -1812,6 +1857,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
1812
1857
|
|
|
1813
1858
|
|
|
1814
1859
|
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1815
1863
|
|
|
1816
1864
|
|
|
1817
1865
|
|
|
@@ -2122,6 +2170,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2122
2170
|
|
|
2123
2171
|
|
|
2124
2172
|
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2125
2176
|
|
|
2126
2177
|
|
|
2127
2178
|
|
|
@@ -2214,6 +2265,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2214
2265
|
|
|
2215
2266
|
|
|
2216
2267
|
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
|
|
2217
2271
|
|
|
2218
2272
|
|
|
2219
2273
|
|
|
@@ -2365,6 +2419,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2365
2419
|
|
|
2366
2420
|
|
|
2367
2421
|
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2368
2425
|
|
|
2369
2426
|
|
|
2370
2427
|
|
|
@@ -2469,6 +2526,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2469
2526
|
|
|
2470
2527
|
|
|
2471
2528
|
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
|
|
2472
2532
|
|
|
2473
2533
|
|
|
2474
2534
|
|
|
@@ -2591,6 +2651,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2591
2651
|
|
|
2592
2652
|
|
|
2593
2653
|
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
|
|
2594
2657
|
|
|
2595
2658
|
|
|
2596
2659
|
|
|
@@ -2757,6 +2820,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2757
2820
|
|
|
2758
2821
|
|
|
2759
2822
|
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
|
|
2760
2826
|
|
|
2761
2827
|
|
|
2762
2828
|
|
|
@@ -2814,6 +2880,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2814
2880
|
|
|
2815
2881
|
|
|
2816
2882
|
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2817
2886
|
|
|
2818
2887
|
|
|
2819
2888
|
|
|
@@ -2875,6 +2944,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2875
2944
|
|
|
2876
2945
|
|
|
2877
2946
|
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
|
|
2878
2950
|
|
|
2879
2951
|
|
|
2880
2952
|
|
|
@@ -2969,6 +3041,9 @@ export class BinaryTree<K = any, V = any, R = any>
|
|
|
2969
3041
|
|
|
2970
3042
|
|
|
2971
3043
|
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
2972
3047
|
|
|
2973
3048
|
|
|
2974
3049
|
|