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
|
@@ -158,6 +158,35 @@ var _IterableElementBase = class _IterableElementBase {
|
|
|
158
158
|
for (const ele of this) if (ele === element) return true;
|
|
159
159
|
return false;
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Check whether a value exists (Array-compatible alias for `has`).
|
|
163
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
164
|
+
* @param element - Element to search for (uses `===`).
|
|
165
|
+
* @returns `true` if found.
|
|
166
|
+
*/
|
|
167
|
+
includes(element) {
|
|
168
|
+
return this.has(element);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Return an iterator of `[index, value]` pairs (Array-compatible).
|
|
172
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
173
|
+
*/
|
|
174
|
+
*entries() {
|
|
175
|
+
let index = 0;
|
|
176
|
+
for (const value of this) {
|
|
177
|
+
yield [index++, value];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Return an iterator of numeric indices (Array-compatible).
|
|
182
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
183
|
+
*/
|
|
184
|
+
*keys() {
|
|
185
|
+
let index = 0;
|
|
186
|
+
for (const _ of this) {
|
|
187
|
+
yield index++;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
161
190
|
/**
|
|
162
191
|
* Reduces all elements to a single accumulated value.
|
|
163
192
|
*
|
|
@@ -291,6 +320,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
291
320
|
|
|
292
321
|
|
|
293
322
|
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
294
326
|
|
|
295
327
|
|
|
296
328
|
|
|
@@ -355,6 +387,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
355
387
|
|
|
356
388
|
|
|
357
389
|
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
358
393
|
|
|
359
394
|
|
|
360
395
|
|
|
@@ -408,6 +443,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
408
443
|
|
|
409
444
|
|
|
410
445
|
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
411
449
|
|
|
412
450
|
|
|
413
451
|
|
|
@@ -461,6 +499,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
461
499
|
|
|
462
500
|
|
|
463
501
|
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
464
505
|
|
|
465
506
|
|
|
466
507
|
|
|
@@ -523,6 +564,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
523
564
|
|
|
524
565
|
|
|
525
566
|
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
526
570
|
|
|
527
571
|
|
|
528
572
|
|
|
@@ -600,6 +644,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
600
644
|
|
|
601
645
|
|
|
602
646
|
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
603
650
|
|
|
604
651
|
|
|
605
652
|
|
|
@@ -677,6 +724,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
677
724
|
|
|
678
725
|
|
|
679
726
|
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
680
730
|
|
|
681
731
|
|
|
682
732
|
|
|
@@ -727,6 +777,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
727
777
|
|
|
728
778
|
|
|
729
779
|
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
730
783
|
|
|
731
784
|
|
|
732
785
|
|
|
@@ -783,6 +836,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
783
836
|
|
|
784
837
|
|
|
785
838
|
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
786
842
|
|
|
787
843
|
|
|
788
844
|
|
|
@@ -859,6 +915,9 @@ var _Stack = class _Stack extends IterableElementBase {
|
|
|
859
915
|
|
|
860
916
|
|
|
861
917
|
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
862
921
|
|
|
863
922
|
|
|
864
923
|
|
package/dist/esm-legacy/trie.mjs
CHANGED
|
@@ -183,6 +183,35 @@ var _IterableElementBase = class _IterableElementBase {
|
|
|
183
183
|
for (const ele of this) if (ele === element) return true;
|
|
184
184
|
return false;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Check whether a value exists (Array-compatible alias for `has`).
|
|
188
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
189
|
+
* @param element - Element to search for (uses `===`).
|
|
190
|
+
* @returns `true` if found.
|
|
191
|
+
*/
|
|
192
|
+
includes(element) {
|
|
193
|
+
return this.has(element);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Return an iterator of `[index, value]` pairs (Array-compatible).
|
|
197
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
198
|
+
*/
|
|
199
|
+
*entries() {
|
|
200
|
+
let index = 0;
|
|
201
|
+
for (const value of this) {
|
|
202
|
+
yield [index++, value];
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Return an iterator of numeric indices (Array-compatible).
|
|
207
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
208
|
+
*/
|
|
209
|
+
*keys() {
|
|
210
|
+
let index = 0;
|
|
211
|
+
for (const _ of this) {
|
|
212
|
+
yield index++;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
186
215
|
/**
|
|
187
216
|
* Reduces all elements to a single accumulated value.
|
|
188
217
|
*
|
|
@@ -418,6 +447,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
418
447
|
|
|
419
448
|
|
|
420
449
|
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
421
453
|
|
|
422
454
|
|
|
423
455
|
|
|
@@ -494,6 +526,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
494
526
|
|
|
495
527
|
|
|
496
528
|
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
497
532
|
|
|
498
533
|
|
|
499
534
|
|
|
@@ -557,6 +592,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
557
592
|
|
|
558
593
|
|
|
559
594
|
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
560
598
|
|
|
561
599
|
|
|
562
600
|
|
|
@@ -615,6 +653,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
615
653
|
|
|
616
654
|
|
|
617
655
|
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
618
659
|
|
|
619
660
|
|
|
620
661
|
|
|
@@ -665,6 +706,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
665
706
|
|
|
666
707
|
|
|
667
708
|
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
668
712
|
|
|
669
713
|
|
|
670
714
|
|
|
@@ -719,6 +763,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
719
763
|
|
|
720
764
|
|
|
721
765
|
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
722
769
|
|
|
723
770
|
|
|
724
771
|
|
|
@@ -855,6 +902,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
855
902
|
|
|
856
903
|
|
|
857
904
|
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
858
908
|
|
|
859
909
|
|
|
860
910
|
|
|
@@ -935,6 +985,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
935
985
|
|
|
936
986
|
|
|
937
987
|
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
938
991
|
|
|
939
992
|
|
|
940
993
|
|
|
@@ -998,6 +1051,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
998
1051
|
|
|
999
1052
|
|
|
1000
1053
|
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1001
1057
|
|
|
1002
1058
|
|
|
1003
1059
|
|
|
@@ -1079,6 +1135,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
1079
1135
|
|
|
1080
1136
|
|
|
1081
1137
|
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1082
1141
|
|
|
1083
1142
|
|
|
1084
1143
|
|
|
@@ -1133,6 +1192,9 @@ var _Trie = class _Trie extends IterableElementBase {
|
|
|
1133
1192
|
|
|
1134
1193
|
|
|
1135
1194
|
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1136
1198
|
|
|
1137
1199
|
|
|
1138
1200
|
|
|
@@ -118,6 +118,23 @@ export declare abstract class IterableElementBase<E, R> implements Iterable<E> {
|
|
|
118
118
|
* Time O(n) in the worst case. Space O(1).
|
|
119
119
|
*/
|
|
120
120
|
has(element: E): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Check whether a value exists (Array-compatible alias for `has`).
|
|
123
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1).
|
|
124
|
+
* @param element - Element to search for (uses `===`).
|
|
125
|
+
* @returns `true` if found.
|
|
126
|
+
*/
|
|
127
|
+
includes(element: E): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Return an iterator of `[index, value]` pairs (Array-compatible).
|
|
130
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
131
|
+
*/
|
|
132
|
+
entries(): IterableIterator<[number, E]>;
|
|
133
|
+
/**
|
|
134
|
+
* Return an iterator of numeric indices (Array-compatible).
|
|
135
|
+
* @remarks Provided for familiarity when migrating from Array. Time O(n), Space O(1) per step.
|
|
136
|
+
*/
|
|
137
|
+
keys(): IterableIterator<number>;
|
|
121
138
|
reduce(callbackfn: ReduceElementCallback<E, R>): E;
|
|
122
139
|
reduce(callbackfn: ReduceElementCallback<E, R>, initialValue: E): E;
|
|
123
140
|
reduce<U>(callbackfn: ReduceElementCallback<E, R, U>, initialValue: U): U;
|
|
@@ -173,6 +173,12 @@ export declare abstract class LinearBase<E, R = any, NODE extends LinkedListNode
|
|
|
173
173
|
* @remarks Time O(n), Space O(1)
|
|
174
174
|
*/
|
|
175
175
|
abstract reverse(): this;
|
|
176
|
+
/**
|
|
177
|
+
* Return a new instance of the same type with elements in reverse order (non-mutating).
|
|
178
|
+
* @remarks Provided for familiarity when migrating from Array (ES2023 `toReversed`). Time O(n), Space O(n).
|
|
179
|
+
* @returns A new reversed instance.
|
|
180
|
+
*/
|
|
181
|
+
toReversed(): this;
|
|
176
182
|
/**
|
|
177
183
|
* Append one element or node to the tail.
|
|
178
184
|
* @param elementOrNode - Element or node.
|
|
@@ -402,6 +402,18 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
|
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
405
417
|
|
|
406
418
|
|
|
407
419
|
|
|
@@ -536,6 +548,15 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
|
|
|
536
548
|
|
|
537
549
|
|
|
538
550
|
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
539
560
|
|
|
540
561
|
|
|
541
562
|
|
|
@@ -622,6 +643,12 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
|
|
|
622
643
|
|
|
623
644
|
|
|
624
645
|
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
625
652
|
|
|
626
653
|
|
|
627
654
|
|
|
@@ -746,6 +773,15 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
|
|
|
746
773
|
|
|
747
774
|
|
|
748
775
|
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
749
785
|
|
|
750
786
|
|
|
751
787
|
|
|
@@ -92,6 +92,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
95
101
|
|
|
96
102
|
|
|
97
103
|
|
|
@@ -173,6 +179,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
173
179
|
|
|
174
180
|
|
|
175
181
|
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
176
188
|
|
|
177
189
|
|
|
178
190
|
|
|
@@ -253,6 +265,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
253
265
|
|
|
254
266
|
|
|
255
267
|
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
256
274
|
|
|
257
275
|
|
|
258
276
|
|
|
@@ -334,6 +352,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
334
352
|
|
|
335
353
|
|
|
336
354
|
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
337
361
|
|
|
338
362
|
|
|
339
363
|
|
|
@@ -413,6 +437,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
413
437
|
|
|
414
438
|
|
|
415
439
|
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
416
446
|
|
|
417
447
|
|
|
418
448
|
|
|
@@ -495,6 +525,12 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
495
525
|
|
|
496
526
|
|
|
497
527
|
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
498
534
|
|
|
499
535
|
|
|
500
536
|
|
|
@@ -540,6 +576,9 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
540
576
|
|
|
541
577
|
|
|
542
578
|
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
543
582
|
|
|
544
583
|
|
|
545
584
|
|
|
@@ -584,6 +623,9 @@ export declare class BinaryIndexedTree implements Iterable<number> {
|
|
|
584
623
|
|
|
585
624
|
|
|
586
625
|
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
587
629
|
|
|
588
630
|
|
|
589
631
|
|
|
@@ -387,6 +387,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
387
387
|
|
|
388
388
|
|
|
389
389
|
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
390
393
|
|
|
391
394
|
|
|
392
395
|
|
|
@@ -443,6 +446,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
443
446
|
|
|
444
447
|
|
|
445
448
|
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
446
452
|
|
|
447
453
|
|
|
448
454
|
|
|
@@ -511,6 +517,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
511
517
|
|
|
512
518
|
|
|
513
519
|
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
514
523
|
|
|
515
524
|
|
|
516
525
|
|
|
@@ -555,6 +564,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
555
564
|
|
|
556
565
|
|
|
557
566
|
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
558
570
|
|
|
559
571
|
|
|
560
572
|
|
|
@@ -604,6 +616,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
604
616
|
|
|
605
617
|
|
|
606
618
|
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
607
622
|
|
|
608
623
|
|
|
609
624
|
|
|
@@ -666,6 +681,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
666
681
|
|
|
667
682
|
|
|
668
683
|
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
669
687
|
|
|
670
688
|
|
|
671
689
|
|
|
@@ -706,6 +724,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
706
724
|
|
|
707
725
|
|
|
708
726
|
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
709
730
|
|
|
710
731
|
|
|
711
732
|
|
|
@@ -759,6 +780,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
759
780
|
|
|
760
781
|
|
|
761
782
|
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
762
786
|
|
|
763
787
|
|
|
764
788
|
|
|
@@ -811,6 +835,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
811
835
|
|
|
812
836
|
|
|
813
837
|
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
814
841
|
|
|
815
842
|
|
|
816
843
|
|
|
@@ -864,6 +891,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
864
891
|
|
|
865
892
|
|
|
866
893
|
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
|
|
867
897
|
|
|
868
898
|
|
|
869
899
|
|
|
@@ -918,6 +948,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
918
948
|
|
|
919
949
|
|
|
920
950
|
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
921
954
|
|
|
922
955
|
|
|
923
956
|
|
|
@@ -988,6 +1021,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
988
1021
|
|
|
989
1022
|
|
|
990
1023
|
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
991
1027
|
|
|
992
1028
|
|
|
993
1029
|
|
|
@@ -1037,6 +1073,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1037
1073
|
|
|
1038
1074
|
|
|
1039
1075
|
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1040
1079
|
|
|
1041
1080
|
|
|
1042
1081
|
|
|
@@ -1094,6 +1133,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1094
1133
|
|
|
1095
1134
|
|
|
1096
1135
|
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1097
1139
|
|
|
1098
1140
|
|
|
1099
1141
|
|
|
@@ -1147,6 +1189,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1147
1189
|
|
|
1148
1190
|
|
|
1149
1191
|
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1150
1195
|
|
|
1151
1196
|
|
|
1152
1197
|
|
|
@@ -1200,6 +1245,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1200
1245
|
|
|
1201
1246
|
|
|
1202
1247
|
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1203
1251
|
|
|
1204
1252
|
|
|
1205
1253
|
|
|
@@ -1278,6 +1326,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1278
1326
|
|
|
1279
1327
|
|
|
1280
1328
|
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1281
1332
|
|
|
1282
1333
|
|
|
1283
1334
|
|
|
@@ -1328,6 +1379,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1328
1379
|
|
|
1329
1380
|
|
|
1330
1381
|
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1331
1385
|
|
|
1332
1386
|
|
|
1333
1387
|
|
|
@@ -1398,6 +1452,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1398
1452
|
|
|
1399
1453
|
|
|
1400
1454
|
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
|
|
1401
1458
|
|
|
1402
1459
|
|
|
1403
1460
|
|
|
@@ -1444,6 +1501,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1444
1501
|
|
|
1445
1502
|
|
|
1446
1503
|
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
|
|
1447
1507
|
|
|
1448
1508
|
|
|
1449
1509
|
|
|
@@ -1492,6 +1552,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1492
1552
|
|
|
1493
1553
|
|
|
1494
1554
|
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1495
1558
|
|
|
1496
1559
|
|
|
1497
1560
|
|
|
@@ -1542,6 +1605,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1542
1605
|
|
|
1543
1606
|
|
|
1544
1607
|
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
|
|
1545
1611
|
|
|
1546
1612
|
|
|
1547
1613
|
|
|
@@ -1594,6 +1660,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1594
1660
|
|
|
1595
1661
|
|
|
1596
1662
|
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
|
|
1597
1666
|
|
|
1598
1667
|
|
|
1599
1668
|
|
|
@@ -1649,6 +1718,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1649
1718
|
|
|
1650
1719
|
|
|
1651
1720
|
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1652
1724
|
|
|
1653
1725
|
|
|
1654
1726
|
|
|
@@ -1708,6 +1780,9 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
|
|
|
1708
1780
|
|
|
1709
1781
|
|
|
1710
1782
|
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
|
|
1711
1786
|
|
|
1712
1787
|
|
|
1713
1788
|
|