data-structure-typed 1.32.2 → 1.32.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.
Files changed (246) hide show
  1. package/.idea/data-structure-typed.iml +19 -0
  2. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/CHANGELOG.md +1 -1
  7. package/README.md +366 -76
  8. package/coverage/coverage-final.json +4 -4
  9. package/docs/index.html +260 -9
  10. package/package.json +48 -16
  11. package/test/unit/data-structures/binary-tree/tree-multiset.test.ts +46 -1
  12. package/coverage/clover.xml +0 -3393
  13. package/coverage/lcov-report/base.css +0 -224
  14. package/coverage/lcov-report/block-navigation.js +0 -87
  15. package/coverage/lcov-report/favicon.png +0 -0
  16. package/coverage/lcov-report/index.html +0 -386
  17. package/coverage/lcov-report/prettify.css +0 -1
  18. package/coverage/lcov-report/prettify.js +0 -2
  19. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  20. package/coverage/lcov-report/sorter.js +0 -196
  21. package/coverage/lcov-report/src/data-structures/binary-tree/aa-tree.ts.html +0 -88
  22. package/coverage/lcov-report/src/data-structures/binary-tree/abstract-binary-tree.ts.html +0 -4978
  23. package/coverage/lcov-report/src/data-structures/binary-tree/avl-tree.ts.html +0 -1015
  24. package/coverage/lcov-report/src/data-structures/binary-tree/b-tree.ts.html +0 -88
  25. package/coverage/lcov-report/src/data-structures/binary-tree/binary-indexed-tree.ts.html +0 -313
  26. package/coverage/lcov-report/src/data-structures/binary-tree/binary-tree.ts.html +0 -226
  27. package/coverage/lcov-report/src/data-structures/binary-tree/bst.ts.html +0 -1696
  28. package/coverage/lcov-report/src/data-structures/binary-tree/index.html +0 -296
  29. package/coverage/lcov-report/src/data-structures/binary-tree/index.ts.html +0 -121
  30. package/coverage/lcov-report/src/data-structures/binary-tree/rb-tree.ts.html +0 -388
  31. package/coverage/lcov-report/src/data-structures/binary-tree/segment-tree.ts.html +0 -811
  32. package/coverage/lcov-report/src/data-structures/binary-tree/splay-tree.ts.html +0 -88
  33. package/coverage/lcov-report/src/data-structures/binary-tree/tree-multiset.ts.html +0 -2185
  34. package/coverage/lcov-report/src/data-structures/binary-tree/two-three-tree.ts.html +0 -88
  35. package/coverage/lcov-report/src/data-structures/graph/abstract-graph.ts.html +0 -3205
  36. package/coverage/lcov-report/src/data-structures/graph/directed-graph.ts.html +0 -1495
  37. package/coverage/lcov-report/src/data-structures/graph/index.html +0 -176
  38. package/coverage/lcov-report/src/data-structures/graph/index.ts.html +0 -97
  39. package/coverage/lcov-report/src/data-structures/graph/map-graph.ts.html +0 -472
  40. package/coverage/lcov-report/src/data-structures/graph/undirected-graph.ts.html +0 -907
  41. package/coverage/lcov-report/src/data-structures/hash/coordinate-map.ts.html +0 -286
  42. package/coverage/lcov-report/src/data-structures/hash/coordinate-set.ts.html +0 -253
  43. package/coverage/lcov-report/src/data-structures/hash/hash-table.ts.html +0 -88
  44. package/coverage/lcov-report/src/data-structures/hash/index.html +0 -206
  45. package/coverage/lcov-report/src/data-structures/hash/index.ts.html +0 -103
  46. package/coverage/lcov-report/src/data-structures/hash/pair.ts.html +0 -88
  47. package/coverage/lcov-report/src/data-structures/hash/tree-map.ts.html +0 -88
  48. package/coverage/lcov-report/src/data-structures/hash/tree-set.ts.html +0 -88
  49. package/coverage/lcov-report/src/data-structures/heap/heap.ts.html +0 -721
  50. package/coverage/lcov-report/src/data-structures/heap/index.html +0 -161
  51. package/coverage/lcov-report/src/data-structures/heap/index.ts.html +0 -94
  52. package/coverage/lcov-report/src/data-structures/heap/max-heap.ts.html +0 -178
  53. package/coverage/lcov-report/src/data-structures/heap/min-heap.ts.html +0 -181
  54. package/coverage/lcov-report/src/data-structures/index.html +0 -116
  55. package/coverage/lcov-report/src/data-structures/index.ts.html +0 -118
  56. package/coverage/lcov-report/src/data-structures/linked-list/doubly-linked-list.ts.html +0 -1804
  57. package/coverage/lcov-report/src/data-structures/linked-list/index.html +0 -161
  58. package/coverage/lcov-report/src/data-structures/linked-list/index.ts.html +0 -94
  59. package/coverage/lcov-report/src/data-structures/linked-list/singly-linked-list.ts.html +0 -1588
  60. package/coverage/lcov-report/src/data-structures/linked-list/skip-linked-list.ts.html +0 -88
  61. package/coverage/lcov-report/src/data-structures/matrix/index.html +0 -176
  62. package/coverage/lcov-report/src/data-structures/matrix/index.ts.html +0 -97
  63. package/coverage/lcov-report/src/data-structures/matrix/matrix.ts.html +0 -166
  64. package/coverage/lcov-report/src/data-structures/matrix/matrix2d.ts.html +0 -721
  65. package/coverage/lcov-report/src/data-structures/matrix/navigator.ts.html +0 -448
  66. package/coverage/lcov-report/src/data-structures/matrix/vector2d.ts.html +0 -1033
  67. package/coverage/lcov-report/src/data-structures/priority-queue/index.html +0 -161
  68. package/coverage/lcov-report/src/data-structures/priority-queue/index.ts.html +0 -94
  69. package/coverage/lcov-report/src/data-structures/priority-queue/max-priority-queue.ts.html +0 -253
  70. package/coverage/lcov-report/src/data-structures/priority-queue/min-priority-queue.ts.html +0 -256
  71. package/coverage/lcov-report/src/data-structures/priority-queue/priority-queue.ts.html +0 -1162
  72. package/coverage/lcov-report/src/data-structures/queue/deque.ts.html +0 -976
  73. package/coverage/lcov-report/src/data-structures/queue/index.html +0 -146
  74. package/coverage/lcov-report/src/data-structures/queue/index.ts.html +0 -91
  75. package/coverage/lcov-report/src/data-structures/queue/queue.ts.html +0 -658
  76. package/coverage/lcov-report/src/data-structures/stack/index.html +0 -131
  77. package/coverage/lcov-report/src/data-structures/stack/index.ts.html +0 -88
  78. package/coverage/lcov-report/src/data-structures/stack/stack.ts.html +0 -379
  79. package/coverage/lcov-report/src/data-structures/tree/index.html +0 -131
  80. package/coverage/lcov-report/src/data-structures/tree/index.ts.html +0 -88
  81. package/coverage/lcov-report/src/data-structures/tree/tree.ts.html +0 -292
  82. package/coverage/lcov-report/src/data-structures/trie/index.html +0 -131
  83. package/coverage/lcov-report/src/data-structures/trie/index.ts.html +0 -88
  84. package/coverage/lcov-report/src/data-structures/trie/trie.ts.html +0 -760
  85. package/coverage/lcov-report/src/index.html +0 -116
  86. package/coverage/lcov-report/src/index.ts.html +0 -97
  87. package/coverage/lcov-report/src/interfaces/index.html +0 -116
  88. package/coverage/lcov-report/src/interfaces/index.ts.html +0 -130
  89. package/coverage/lcov-report/src/types/data-structures/abstract-binary-tree.ts.html +0 -235
  90. package/coverage/lcov-report/src/types/data-structures/bst.ts.html +0 -124
  91. package/coverage/lcov-report/src/types/data-structures/directed-graph.ts.html +0 -109
  92. package/coverage/lcov-report/src/types/data-structures/index.html +0 -176
  93. package/coverage/lcov-report/src/types/data-structures/index.ts.html +0 -130
  94. package/coverage/lcov-report/src/types/data-structures/rb-tree.ts.html +0 -106
  95. package/coverage/lcov-report/src/types/index.html +0 -116
  96. package/coverage/lcov-report/src/types/index.ts.html +0 -94
  97. package/coverage/lcov-report/src/types/utils/index.html +0 -116
  98. package/coverage/lcov-report/src/types/utils/index.ts.html +0 -91
  99. package/coverage/lcov-report/src/utils/index.html +0 -131
  100. package/coverage/lcov-report/src/utils/index.ts.html +0 -88
  101. package/coverage/lcov-report/src/utils/utils.ts.html +0 -322
  102. package/coverage/lcov-report/test/utils/index.html +0 -146
  103. package/coverage/lcov-report/test/utils/index.ts.html +0 -91
  104. package/coverage/lcov-report/test/utils/magnitude.ts.html +0 -148
  105. package/coverage/lcov-report/test/utils/number.ts.html +0 -94
  106. package/coverage/lcov.info +0 -6676
  107. package/docs/assets/highlight.css +0 -127
  108. package/docs/assets/main.js +0 -58
  109. package/docs/assets/search.js +0 -1
  110. package/docs/assets/style.css +0 -1367
  111. package/docs/classes/AVLTree.html +0 -2182
  112. package/docs/classes/AVLTreeNode.html +0 -399
  113. package/docs/classes/AaTree.html +0 -202
  114. package/docs/classes/AbstractBinaryTree.html +0 -1836
  115. package/docs/classes/AbstractBinaryTreeNode.html +0 -441
  116. package/docs/classes/AbstractEdge.html +0 -345
  117. package/docs/classes/AbstractGraph.html +0 -1105
  118. package/docs/classes/AbstractVertex.html +0 -299
  119. package/docs/classes/ArrayDeque.html +0 -469
  120. package/docs/classes/BST.html +0 -2026
  121. package/docs/classes/BSTNode.html +0 -400
  122. package/docs/classes/BTree.html +0 -202
  123. package/docs/classes/BinaryIndexedTree.html +0 -371
  124. package/docs/classes/BinaryTree.html +0 -1867
  125. package/docs/classes/BinaryTreeNode.html +0 -399
  126. package/docs/classes/Character.html +0 -250
  127. package/docs/classes/CoordinateMap.html +0 -513
  128. package/docs/classes/CoordinateSet.html +0 -474
  129. package/docs/classes/Deque.html +0 -1005
  130. package/docs/classes/DirectedEdge.html +0 -404
  131. package/docs/classes/DirectedGraph.html +0 -1530
  132. package/docs/classes/DirectedVertex.html +0 -286
  133. package/docs/classes/DoublyLinkedList.html +0 -998
  134. package/docs/classes/DoublyLinkedListNode.html +0 -327
  135. package/docs/classes/HashTable.html +0 -202
  136. package/docs/classes/Heap.html +0 -647
  137. package/docs/classes/HeapItem.html +0 -296
  138. package/docs/classes/LinkedListQueue.html +0 -884
  139. package/docs/classes/MapEdge.html +0 -391
  140. package/docs/classes/MapGraph.html +0 -1583
  141. package/docs/classes/MapVertex.html +0 -356
  142. package/docs/classes/Matrix2D.html +0 -532
  143. package/docs/classes/MatrixNTI2D.html +0 -270
  144. package/docs/classes/MaxHeap.html +0 -671
  145. package/docs/classes/MaxPriorityQueue.html +0 -866
  146. package/docs/classes/MinHeap.html +0 -672
  147. package/docs/classes/MinPriorityQueue.html +0 -868
  148. package/docs/classes/Navigator.html +0 -343
  149. package/docs/classes/ObjectDeque.html +0 -527
  150. package/docs/classes/Pair.html +0 -202
  151. package/docs/classes/PriorityQueue.html +0 -790
  152. package/docs/classes/Queue.html +0 -521
  153. package/docs/classes/RBTree.html +0 -2024
  154. package/docs/classes/RBTreeNode.html +0 -431
  155. package/docs/classes/SegmentTree.html +0 -464
  156. package/docs/classes/SegmentTreeNode.html +0 -387
  157. package/docs/classes/SinglyLinkedList.html +0 -830
  158. package/docs/classes/SinglyLinkedListNode.html +0 -300
  159. package/docs/classes/SkipLinkedList.html +0 -202
  160. package/docs/classes/SplayTree.html +0 -202
  161. package/docs/classes/Stack.html +0 -398
  162. package/docs/classes/TreeMap.html +0 -202
  163. package/docs/classes/TreeMultiset.html +0 -2510
  164. package/docs/classes/TreeMultisetNode.html +0 -447
  165. package/docs/classes/TreeNode.html +0 -344
  166. package/docs/classes/TreeSet.html +0 -202
  167. package/docs/classes/Trie.html +0 -402
  168. package/docs/classes/TrieNode.html +0 -310
  169. package/docs/classes/TwoThreeTree.html +0 -202
  170. package/docs/classes/UndirectedEdge.html +0 -374
  171. package/docs/classes/UndirectedGraph.html +0 -1285
  172. package/docs/classes/UndirectedVertex.html +0 -284
  173. package/docs/classes/Vector2D.html +0 -835
  174. package/docs/enums/CP.html +0 -211
  175. package/docs/enums/FamilyPosition.html +0 -239
  176. package/docs/enums/LoopType.html +0 -212
  177. package/docs/enums/RBColor.html +0 -204
  178. package/docs/enums/TopologicalProperty.html +0 -211
  179. package/docs/functions/arrayRemove.html +0 -208
  180. package/docs/functions/isThunk.html +0 -186
  181. package/docs/functions/toThunk.html +0 -186
  182. package/docs/functions/trampoline.html +0 -186
  183. package/docs/functions/trampolineAsync.html +0 -186
  184. package/docs/functions/uuidV4.html +0 -181
  185. package/docs/interfaces/IAVLTree.html +0 -1245
  186. package/docs/interfaces/IAbstractBinaryTree.html +0 -1101
  187. package/docs/interfaces/IAbstractBinaryTreeNode.html +0 -335
  188. package/docs/interfaces/IAbstractGraph.html +0 -433
  189. package/docs/interfaces/IBST.html +0 -1245
  190. package/docs/interfaces/IDirectedGraph.html +0 -570
  191. package/docs/interfaces/IRBTree.html +0 -1247
  192. package/docs/interfaces/IUNDirectedGraph.html +0 -463
  193. package/docs/types/AVLTreeNodeNested.html +0 -182
  194. package/docs/types/AVLTreeOptions.html +0 -180
  195. package/docs/types/AbstractBinaryTreeNodeNested.html +0 -182
  196. package/docs/types/AbstractBinaryTreeNodeProperties.html +0 -182
  197. package/docs/types/AbstractBinaryTreeNodeProperty.html +0 -182
  198. package/docs/types/AbstractBinaryTreeOptions.html +0 -182
  199. package/docs/types/BSTComparator.html +0 -192
  200. package/docs/types/BSTNodeNested.html +0 -182
  201. package/docs/types/BSTOptions.html +0 -182
  202. package/docs/types/BinaryTreeDeletedResult.html +0 -189
  203. package/docs/types/BinaryTreeNodeId.html +0 -177
  204. package/docs/types/BinaryTreeNodeNested.html +0 -182
  205. package/docs/types/BinaryTreeNodePropertyName.html +0 -177
  206. package/docs/types/BinaryTreeOptions.html +0 -180
  207. package/docs/types/DFSOrderPattern.html +0 -177
  208. package/docs/types/DijkstraResult.html +0 -199
  209. package/docs/types/Direction.html +0 -177
  210. package/docs/types/DummyAny.html +0 -190
  211. package/docs/types/EdgeId.html +0 -177
  212. package/docs/types/HeapOptions.html +0 -198
  213. package/docs/types/IAVLTreeNode.html +0 -184
  214. package/docs/types/IBSTNode.html +0 -184
  215. package/docs/types/IBinaryTree.html +0 -182
  216. package/docs/types/IBinaryTreeNode.html +0 -184
  217. package/docs/types/IRBTreeNode.html +0 -184
  218. package/docs/types/ITreeMultiset.html +0 -182
  219. package/docs/types/ITreeMultisetNode.html +0 -184
  220. package/docs/types/KeyValueObject.html +0 -182
  221. package/docs/types/KeyValueObjectWithId.html +0 -184
  222. package/docs/types/MapGraphCoordinate.html +0 -177
  223. package/docs/types/NavigatorParams.html +0 -211
  224. package/docs/types/NodeOrPropertyName.html +0 -177
  225. package/docs/types/NonNumberNonObjectButDefined.html +0 -177
  226. package/docs/types/ObjectWithNonNumberId.html +0 -184
  227. package/docs/types/ObjectWithNumberId.html +0 -184
  228. package/docs/types/ObjectWithoutId.html +0 -177
  229. package/docs/types/PriorityQueueComparator.html +0 -197
  230. package/docs/types/PriorityQueueDFSOrderPattern.html +0 -177
  231. package/docs/types/PriorityQueueOptions.html +0 -191
  232. package/docs/types/RBTreeNodeNested.html +0 -182
  233. package/docs/types/RBTreeOptions.html +0 -180
  234. package/docs/types/RestrictValById.html +0 -177
  235. package/docs/types/SegmentTreeNodeVal.html +0 -177
  236. package/docs/types/SpecifyOptional.html +0 -184
  237. package/docs/types/Thunk.html +0 -185
  238. package/docs/types/ToThunkFn.html +0 -185
  239. package/docs/types/TopologicalStatus.html +0 -177
  240. package/docs/types/TreeMultisetNodeNested.html +0 -182
  241. package/docs/types/TreeMultisetOptions.html +0 -180
  242. package/docs/types/TrlAsyncFn.html +0 -190
  243. package/docs/types/TrlFn.html +0 -190
  244. package/docs/types/Turning.html +0 -177
  245. package/docs/types/VertexId.html +0 -177
  246. package/docs/variables/THUNK_SYMBOL.html +0 -177
@@ -1,1836 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>AbstractBinaryTree | data-structure-typed</title><meta name="description" content="Documentation for data-structure-typed"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
- <div class="tsd-toolbar-contents container">
3
- <div class="table-cell" id="tsd-search" data-base="..">
4
- <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
- <div class="field">
6
- <div id="tsd-toolbar-links"></div></div>
7
- <ul class="results">
8
- <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">data-structure-typed</a></div>
10
- <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
- <div class="container container-main">
12
- <div class="col-content">
13
- <div class="tsd-page-title">
14
- <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">data-structure-typed</a></li>
16
- <li><a href="AbstractBinaryTree.html">AbstractBinaryTree</a></li></ul>
17
- <h1>Class AbstractBinaryTree&lt;N&gt;<code class="tsd-tag ts-flagAbstract">Abstract</code> </h1></div>
18
- <section class="tsd-panel">
19
- <h4>Type Parameters</h4>
20
- <ul class="tsd-type-parameter-list">
21
- <li>
22
- <h4><span class="tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol"> extends </span><a href="AbstractBinaryTreeNode.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTreeNode</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span> = <a href="AbstractBinaryTreeNode.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTreeNode</a></h4></li></ul></section>
23
- <section class="tsd-panel tsd-hierarchy">
24
- <h4>Hierarchy</h4>
25
- <ul class="tsd-hierarchy">
26
- <li><span class="target">AbstractBinaryTree</span>
27
- <ul class="tsd-hierarchy">
28
- <li><a href="BinaryTree.html" class="tsd-signature-type tsd-kind-class">BinaryTree</a></li></ul></li></ul></section>
29
- <section class="tsd-panel">
30
- <h4>Implements</h4>
31
- <ul class="tsd-hierarchy">
32
- <li><a href="../interfaces/IAbstractBinaryTree.html" class="tsd-signature-type tsd-kind-interface">IAbstractBinaryTree</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span></li></ul></section><aside class="tsd-sources">
33
- <ul>
34
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L138">src/data-structures/binary-tree/abstract-binary-tree.ts:138</a></li></ul></aside>
35
- <section class="tsd-panel-group tsd-index-group">
36
- <section class="tsd-panel tsd-index-panel">
37
- <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
38
- <h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
39
- <div class="tsd-accordion-details">
40
- <section class="tsd-index-section">
41
- <h3 class="tsd-index-heading">Constructors</h3>
42
- <div class="tsd-index-list"><a href="AbstractBinaryTree.html#constructor" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>constructor</span></a>
43
- </div></section>
44
- <section class="tsd-index-section">
45
- <h3 class="tsd-index-heading">Properties</h3>
46
- <div class="tsd-index-list"><a href="AbstractBinaryTree.html#_loopType" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g></svg><span>_loop<wbr/>Type</span></a>
47
- <a href="AbstractBinaryTree.html#_root" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_root</span></a>
48
- <a href="AbstractBinaryTree.html#_size" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_size</span></a>
49
- <a href="AbstractBinaryTree.html#_visitedId" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Id</span></a>
50
- <a href="AbstractBinaryTree.html#_visitedLeftSum" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Left<wbr/>Sum</span></a>
51
- <a href="AbstractBinaryTree.html#_visitedNode" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Node</span></a>
52
- <a href="AbstractBinaryTree.html#_visitedVal" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Val</span></a>
53
- </div></section>
54
- <section class="tsd-index-section">
55
- <h3 class="tsd-index-heading">Accessors</h3>
56
- <div class="tsd-index-list"><a href="AbstractBinaryTree.html#loopType" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g></svg><span>loop<wbr/>Type</span></a>
57
- <a href="AbstractBinaryTree.html#root" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>root</span></a>
58
- <a href="AbstractBinaryTree.html#size" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>size</span></a>
59
- <a href="AbstractBinaryTree.html#visitedId" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Id</span></a>
60
- <a href="AbstractBinaryTree.html#visitedLeftSum" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Left<wbr/>Sum</span></a>
61
- <a href="AbstractBinaryTree.html#visitedNode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Node</span></a>
62
- <a href="AbstractBinaryTree.html#visitedVal" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Val</span></a>
63
- </div></section>
64
- <section class="tsd-index-section">
65
- <h3 class="tsd-index-heading">Methods</h3>
66
- <div class="tsd-index-list"><a href="AbstractBinaryTree.html#BFS" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g></svg><span>BFS</span></a>
67
- <a href="AbstractBinaryTree.html#DFS" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>DFS</span></a>
68
- <a href="AbstractBinaryTree.html#DFSIterative" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>DFSIterative</span></a>
69
- <a href="AbstractBinaryTree.html#_accumulatedByPropertyName" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_accumulated<wbr/>By<wbr/>Property<wbr/>Name</span></a>
70
- <a href="AbstractBinaryTree.html#_addTo" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_add<wbr/>To</span></a>
71
- <a href="AbstractBinaryTree.html#_clearResults" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_clear<wbr/>Results</span></a>
72
- <a href="AbstractBinaryTree.html#_getResultByPropertyName" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_get<wbr/>Result<wbr/>By<wbr/>Property<wbr/>Name</span></a>
73
- <a href="AbstractBinaryTree.html#_pushByPropertyNameStopOrNot" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_push<wbr/>By<wbr/>Property<wbr/>Name<wbr/>Stop<wbr/>Or<wbr/>Not</span></a>
74
- <a href="AbstractBinaryTree.html#_setLoopType" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Loop<wbr/>Type</span></a>
75
- <a href="AbstractBinaryTree.html#_setRoot" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Root</span></a>
76
- <a href="AbstractBinaryTree.html#_setSize" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Size</span></a>
77
- <a href="AbstractBinaryTree.html#_setVisitedId" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Id</span></a>
78
- <a href="AbstractBinaryTree.html#_setVisitedLeftSum" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Left<wbr/>Sum</span></a>
79
- <a href="AbstractBinaryTree.html#_setVisitedNode" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Node</span></a>
80
- <a href="AbstractBinaryTree.html#_setVisitedVal" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Val</span></a>
81
- <a href="AbstractBinaryTree.html#add" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add</span></a>
82
- <a href="AbstractBinaryTree.html#addMany" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add<wbr/>Many</span></a>
83
- <a href="AbstractBinaryTree.html#clear" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>clear</span></a>
84
- <a href="AbstractBinaryTree.html#createNode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Node</span></a>
85
- <a href="AbstractBinaryTree.html#fill" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>fill</span></a>
86
- <a href="AbstractBinaryTree.html#get" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get</span></a>
87
- <a href="AbstractBinaryTree.html#getDepth" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Depth</span></a>
88
- <a href="AbstractBinaryTree.html#getHeight" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Height</span></a>
89
- <a href="AbstractBinaryTree.html#getLeftMost" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Left<wbr/>Most</span></a>
90
- <a href="AbstractBinaryTree.html#getMinHeight" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Min<wbr/>Height</span></a>
91
- <a href="AbstractBinaryTree.html#getNodes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Nodes</span></a>
92
- <a href="AbstractBinaryTree.html#getPathToRoot" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Path<wbr/>To<wbr/>Root</span></a>
93
- <a href="AbstractBinaryTree.html#getPredecessor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Predecessor</span></a>
94
- <a href="AbstractBinaryTree.html#getRightMost" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Right<wbr/>Most</span></a>
95
- <a href="AbstractBinaryTree.html#getSubTreeSize" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Sub<wbr/>Tree<wbr/>Size</span></a>
96
- <a href="AbstractBinaryTree.html#has" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>has</span></a>
97
- <a href="AbstractBinaryTree.html#isBST" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>isBST</span></a>
98
- <a href="AbstractBinaryTree.html#isEmpty" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Empty</span></a>
99
- <a href="AbstractBinaryTree.html#isPerfectlyBalanced" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Perfectly<wbr/>Balanced</span></a>
100
- <a href="AbstractBinaryTree.html#isSubtreeBST" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>SubtreeBST</span></a>
101
- <a href="AbstractBinaryTree.html#levelIterative" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>level<wbr/>Iterative</span></a>
102
- <a href="AbstractBinaryTree.html#listLevels" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Levels</span></a>
103
- <a href="AbstractBinaryTree.html#morris" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>morris</span></a>
104
- <a href="AbstractBinaryTree.html#remove" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>remove</span></a>
105
- <a href="AbstractBinaryTree.html#subTreeAdd" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>sub<wbr/>Tree<wbr/>Add</span></a>
106
- <a href="AbstractBinaryTree.html#subTreeSum" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>sub<wbr/>Tree<wbr/>Sum</span></a>
107
- <a href="AbstractBinaryTree.html#swapLocation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>swap<wbr/>Location</span></a>
108
- </div></section></div></details></section></section>
109
- <section class="tsd-panel-group tsd-member-group">
110
- <h2>Constructors</h2>
111
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="constructor" class="tsd-anchor"></a>
112
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3>
113
- <ul class="tsd-signatures tsd-is-protected">
114
- <li class="tsd-signature tsd-anchor-link" id="constructor.new_AbstractBinaryTree"><span class="tsd-kind-constructor-signature">new <wbr/>Abstract<wbr/>Binary<wbr/>Tree</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="AbstractBinaryTree.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTree</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span><a href="#constructor.new_AbstractBinaryTree" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
115
- <li class="tsd-description">
116
- <div class="tsd-comment tsd-typography"><p>The protected constructor initializes the options for an abstract binary tree.</p>
117
- </div>
118
- <section class="tsd-panel">
119
- <h4>Type Parameters</h4>
120
- <ul class="tsd-type-parameter-list">
121
- <li>
122
- <h4><span class="tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol"> extends </span><a href="AbstractBinaryTreeNode.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTreeNode</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span> = <a href="AbstractBinaryTreeNode.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTreeNode</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><a href="../types/AbstractBinaryTreeNodeNested.html" class="tsd-signature-type tsd-kind-type-alias">AbstractBinaryTreeNodeNested</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section>
123
- <div class="tsd-parameters">
124
- <h4 class="tsd-parameters-title">Parameters</h4>
125
- <ul class="tsd-parameter-list">
126
- <li>
127
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <a href="../types/AbstractBinaryTreeOptions.html" class="tsd-signature-type tsd-kind-type-alias">AbstractBinaryTreeOptions</a></h5>
128
- <div class="tsd-comment tsd-typography"><p>An optional object that contains configuration options for the binary
129
- tree.</p>
130
- </div>
131
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
132
- <h4 class="tsd-returns-title">Returns <a href="AbstractBinaryTree.html" class="tsd-signature-type tsd-kind-class">AbstractBinaryTree</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span></h4>
133
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
134
- <ul>
135
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L146">src/data-structures/binary-tree/abstract-binary-tree.ts:146</a></li></ul></aside></li></ul></section></section>
136
- <section class="tsd-panel-group tsd-member-group">
137
- <h2>Properties</h2>
138
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_loopType" class="tsd-anchor"></a>
139
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_loop<wbr/>Type</span><a href="#_loopType" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
140
- <div class="tsd-signature"><span class="tsd-kind-property">_loop<wbr/>Type</span><span class="tsd-signature-symbol">:</span> <a href="../enums/LoopType.html" class="tsd-signature-type tsd-kind-enum">LoopType</a><span class="tsd-signature-symbol"> = LoopType.ITERATIVE</span></div><aside class="tsd-sources">
141
- <ul>
142
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L166">src/data-structures/binary-tree/abstract-binary-tree.ts:166</a></li></ul></aside></section>
143
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_root" class="tsd-anchor"></a>
144
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_root</span><a href="#_root" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
145
- <div class="tsd-signature"><span class="tsd-kind-property">_root</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources">
146
- <ul>
147
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L154">src/data-structures/binary-tree/abstract-binary-tree.ts:154</a></li></ul></aside></section>
148
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_size" class="tsd-anchor"></a>
149
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_size</span><a href="#_size" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
150
- <div class="tsd-signature"><span class="tsd-kind-property">_size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
151
- <ul>
152
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L160">src/data-structures/binary-tree/abstract-binary-tree.ts:160</a></li></ul></aside></section>
153
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_visitedId" class="tsd-anchor"></a>
154
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_visited<wbr/>Id</span><a href="#_visitedId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
155
- <div class="tsd-signature"><span class="tsd-kind-property">_visited<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
156
- <ul>
157
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L172">src/data-structures/binary-tree/abstract-binary-tree.ts:172</a></li></ul></aside></section>
158
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_visitedLeftSum" class="tsd-anchor"></a>
159
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_visited<wbr/>Left<wbr/>Sum</span><a href="#_visitedLeftSum" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
160
- <div class="tsd-signature"><span class="tsd-kind-property">_visited<wbr/>Left<wbr/>Sum</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
161
- <ul>
162
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L190">src/data-structures/binary-tree/abstract-binary-tree.ts:190</a></li></ul></aside></section>
163
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_visitedNode" class="tsd-anchor"></a>
164
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_visited<wbr/>Node</span><a href="#_visitedNode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
165
- <div class="tsd-signature"><span class="tsd-kind-property">_visited<wbr/>Node</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
166
- <ul>
167
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L184">src/data-structures/binary-tree/abstract-binary-tree.ts:184</a></li></ul></aside></section>
168
- <section class="tsd-panel tsd-member tsd-is-private"><a id="_visitedVal" class="tsd-anchor"></a>
169
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_visited<wbr/>Val</span><a href="#_visitedVal" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
170
- <div class="tsd-signature"><span class="tsd-kind-property">_visited<wbr/>Val</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
171
- <ul>
172
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L178">src/data-structures/binary-tree/abstract-binary-tree.ts:178</a></li></ul></aside></section></section>
173
- <section class="tsd-panel-group tsd-member-group">
174
- <h2>Accessors</h2>
175
- <section class="tsd-panel tsd-member"><a id="loopType" class="tsd-anchor"></a>
176
- <h3 class="tsd-anchor-link"><span>loop<wbr/>Type</span><a href="#loopType" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
177
- <ul class="tsd-signatures">
178
- <li class="tsd-signature" id="loopType.loopType-1"><span class="tsd-signature-symbol">get</span> loopType<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../enums/LoopType.html" class="tsd-signature-type tsd-kind-enum">LoopType</a></li>
179
- <li class="tsd-description">
180
- <h4 class="tsd-returns-title">Returns <a href="../enums/LoopType.html" class="tsd-signature-type tsd-kind-enum">LoopType</a></h4><aside class="tsd-sources">
181
- <p>Implementation of IAbstractBinaryTree.loopType</p>
182
- <ul>
183
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L168">src/data-structures/binary-tree/abstract-binary-tree.ts:168</a></li></ul></aside></li></ul></section>
184
- <section class="tsd-panel tsd-member"><a id="root" class="tsd-anchor"></a>
185
- <h3 class="tsd-anchor-link"><span>root</span><a href="#root" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
186
- <ul class="tsd-signatures">
187
- <li class="tsd-signature" id="root.root-1"><span class="tsd-signature-symbol">get</span> root<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></li>
188
- <li class="tsd-description">
189
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><aside class="tsd-sources">
190
- <p>Implementation of IAbstractBinaryTree.root</p>
191
- <ul>
192
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L156">src/data-structures/binary-tree/abstract-binary-tree.ts:156</a></li></ul></aside></li></ul></section>
193
- <section class="tsd-panel tsd-member"><a id="size" class="tsd-anchor"></a>
194
- <h3 class="tsd-anchor-link"><span>size</span><a href="#size" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
195
- <ul class="tsd-signatures">
196
- <li class="tsd-signature" id="size.size-1"><span class="tsd-signature-symbol">get</span> size<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
197
- <li class="tsd-description">
198
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
199
- <p>Implementation of IAbstractBinaryTree.size</p>
200
- <ul>
201
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L162">src/data-structures/binary-tree/abstract-binary-tree.ts:162</a></li></ul></aside></li></ul></section>
202
- <section class="tsd-panel tsd-member"><a id="visitedId" class="tsd-anchor"></a>
203
- <h3 class="tsd-anchor-link"><span>visited<wbr/>Id</span><a href="#visitedId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
204
- <ul class="tsd-signatures">
205
- <li class="tsd-signature" id="visitedId.visitedId-1"><span class="tsd-signature-symbol">get</span> visitedId<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></li>
206
- <li class="tsd-description">
207
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
208
- <p>Implementation of IAbstractBinaryTree.visitedId</p>
209
- <ul>
210
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L174">src/data-structures/binary-tree/abstract-binary-tree.ts:174</a></li></ul></aside></li></ul></section>
211
- <section class="tsd-panel tsd-member"><a id="visitedLeftSum" class="tsd-anchor"></a>
212
- <h3 class="tsd-anchor-link"><span>visited<wbr/>Left<wbr/>Sum</span><a href="#visitedLeftSum" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
213
- <ul class="tsd-signatures">
214
- <li class="tsd-signature" id="visitedLeftSum.visitedLeftSum-1"><span class="tsd-signature-symbol">get</span> visitedLeftSum<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></li>
215
- <li class="tsd-description">
216
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
217
- <p>Implementation of IAbstractBinaryTree.visitedLeftSum</p>
218
- <ul>
219
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L192">src/data-structures/binary-tree/abstract-binary-tree.ts:192</a></li></ul></aside></li></ul></section>
220
- <section class="tsd-panel tsd-member"><a id="visitedNode" class="tsd-anchor"></a>
221
- <h3 class="tsd-anchor-link"><span>visited<wbr/>Node</span><a href="#visitedNode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
222
- <ul class="tsd-signatures">
223
- <li class="tsd-signature" id="visitedNode.visitedNode-1"><span class="tsd-signature-symbol">get</span> visitedNode<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></li>
224
- <li class="tsd-description">
225
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
226
- <p>Implementation of IAbstractBinaryTree.visitedNode</p>
227
- <ul>
228
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L186">src/data-structures/binary-tree/abstract-binary-tree.ts:186</a></li></ul></aside></li></ul></section>
229
- <section class="tsd-panel tsd-member"><a id="visitedVal" class="tsd-anchor"></a>
230
- <h3 class="tsd-anchor-link"><span>visited<wbr/>Val</span><a href="#visitedVal" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
231
- <ul class="tsd-signatures">
232
- <li class="tsd-signature" id="visitedVal.visitedVal-1"><span class="tsd-signature-symbol">get</span> visitedVal<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></li>
233
- <li class="tsd-description">
234
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
235
- <p>Implementation of IAbstractBinaryTree.visitedVal</p>
236
- <ul>
237
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L180">src/data-structures/binary-tree/abstract-binary-tree.ts:180</a></li></ul></aside></li></ul></section></section>
238
- <section class="tsd-panel-group tsd-member-group">
239
- <h2>Methods</h2>
240
- <section class="tsd-panel tsd-member"><a id="BFS" class="tsd-anchor"></a>
241
- <h3 class="tsd-anchor-link"><span>BFS</span><a href="#BFS" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
242
- <ul class="tsd-signatures">
243
- <li class="tsd-signature tsd-anchor-link" id="BFS.BFS-1"><span class="tsd-kind-call-signature">BFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#BFS.BFS-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
244
- <li class="tsd-description">
245
- <div class="tsd-comment tsd-typography"><p>Performs a breadth-first search (BFS) on a binary tree, accumulating properties of each node based on their &#39;id&#39; property.</p>
246
- </div>
247
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree node IDs.</p>
248
-
249
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
250
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#BFS">BFS</a></p>
251
- <ul>
252
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L929">src/data-structures/binary-tree/abstract-binary-tree.ts:929</a></li></ul></aside></li>
253
- <li class="tsd-signature tsd-anchor-link" id="BFS.BFS-2"><span class="tsd-kind-call-signature">BFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#BFS.BFS-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
254
- <li class="tsd-description">
255
- <div class="tsd-comment tsd-typography"><p>Performs a breadth-first search (BFS) on a binary tree, accumulating properties of each node based on the specified property name.</p>
256
- </div>
257
- <div class="tsd-parameters">
258
- <h4 class="tsd-parameters-title">Parameters</h4>
259
- <ul class="tsd-parameter-list">
260
- <li>
261
- <h5><span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5>
262
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
263
- </div>
264
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
265
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of values corresponding to the specified property.</p>
266
-
267
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
268
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#BFS">BFS</a></p>
269
- <ul>
270
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L936">src/data-structures/binary-tree/abstract-binary-tree.ts:936</a></li></ul></aside></li>
271
- <li class="tsd-signature tsd-anchor-link" id="BFS.BFS-3"><span class="tsd-kind-call-signature">BFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><a href="#BFS.BFS-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
272
- <li class="tsd-description">
273
- <div class="tsd-comment tsd-typography"><p>Performs a breadth-first search (BFS) on a binary tree, accumulating the &#39;val&#39; property of each node.</p>
274
- </div>
275
- <div class="tsd-parameters">
276
- <h4 class="tsd-parameters-title">Parameters</h4>
277
- <ul class="tsd-parameter-list">
278
- <li>
279
- <h5><span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
280
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
281
- </div>
282
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
283
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of &#39;val&#39; properties from each node.</p>
284
-
285
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
286
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#BFS">BFS</a></p>
287
- <ul>
288
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L943">src/data-structures/binary-tree/abstract-binary-tree.ts:943</a></li></ul></aside></li>
289
- <li class="tsd-signature tsd-anchor-link" id="BFS.BFS-4"><span class="tsd-kind-call-signature">BFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#BFS.BFS-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
290
- <li class="tsd-description">
291
- <div class="tsd-comment tsd-typography"><p>Performs a breadth-first search (BFS) on a binary tree, accumulating nodes themselves.</p>
292
- </div>
293
- <div class="tsd-parameters">
294
- <h4 class="tsd-parameters-title">Parameters</h4>
295
- <ul class="tsd-parameter-list">
296
- <li>
297
- <h5><span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
298
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
299
- </div>
300
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
301
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree nodes.</p>
302
-
303
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
304
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#BFS">BFS</a></p>
305
- <ul>
306
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L950">src/data-structures/binary-tree/abstract-binary-tree.ts:950</a></li></ul></aside></li></ul></section>
307
- <section class="tsd-panel tsd-member"><a id="DFS" class="tsd-anchor"></a>
308
- <h3 class="tsd-anchor-link"><span>DFS</span><a href="#DFS" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
309
- <ul class="tsd-signatures">
310
- <li class="tsd-signature tsd-anchor-link" id="DFS.DFS-1"><span class="tsd-kind-call-signature">DFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#DFS.DFS-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
311
- <li class="tsd-description">
312
- <div class="tsd-comment tsd-typography"><p>Performs a depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on their &#39;id&#39; property.</p>
313
- </div>
314
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree node IDs.</p>
315
-
316
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
317
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFS">DFS</a></p>
318
- <ul>
319
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L980">src/data-structures/binary-tree/abstract-binary-tree.ts:980</a></li></ul></aside></li>
320
- <li class="tsd-signature tsd-anchor-link" id="DFS.DFS-2"><span class="tsd-kind-call-signature">DFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#DFS.DFS-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
321
- <li class="tsd-description">
322
- <div class="tsd-comment tsd-typography"><p>Performs a depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.</p>
323
- </div>
324
- <div class="tsd-parameters">
325
- <h4 class="tsd-parameters-title">Parameters</h4>
326
- <ul class="tsd-parameter-list">
327
- <li>
328
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
329
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
330
- </div>
331
- <div class="tsd-comment tsd-typography"></div></li>
332
- <li>
333
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5>
334
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
335
- </div>
336
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
337
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of values corresponding to the specified property.</p>
338
-
339
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
340
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFS">DFS</a></p>
341
- <ul>
342
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L988">src/data-structures/binary-tree/abstract-binary-tree.ts:988</a></li></ul></aside></li>
343
- <li class="tsd-signature tsd-anchor-link" id="DFS.DFS-3"><span class="tsd-kind-call-signature">DFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#DFS.DFS-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
344
- <li class="tsd-description">
345
- <div class="tsd-comment tsd-typography"><p>Performs a depth-first search (DFS) traversal on a binary tree and accumulates the &#39;val&#39; property of each node.</p>
346
- </div>
347
- <div class="tsd-parameters">
348
- <h4 class="tsd-parameters-title">Parameters</h4>
349
- <ul class="tsd-parameter-list">
350
- <li>
351
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
352
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
353
- </div>
354
- <div class="tsd-comment tsd-typography"></div></li>
355
- <li>
356
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
357
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
358
- </div>
359
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
360
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of &#39;val&#39; properties from each node.</p>
361
-
362
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
363
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFS">DFS</a></p>
364
- <ul>
365
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L996">src/data-structures/binary-tree/abstract-binary-tree.ts:996</a></li></ul></aside></li>
366
- <li class="tsd-signature tsd-anchor-link" id="DFS.DFS-4"><span class="tsd-kind-call-signature">DFS</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#DFS.DFS-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
367
- <li class="tsd-description">
368
- <div class="tsd-comment tsd-typography"><p>Performs a depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.</p>
369
- </div>
370
- <div class="tsd-parameters">
371
- <h4 class="tsd-parameters-title">Parameters</h4>
372
- <ul class="tsd-parameter-list">
373
- <li>
374
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
375
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
376
- </div>
377
- <div class="tsd-comment tsd-typography"></div></li>
378
- <li>
379
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
380
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
381
- </div>
382
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
383
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree nodes.</p>
384
-
385
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
386
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFS">DFS</a></p>
387
- <ul>
388
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1004">src/data-structures/binary-tree/abstract-binary-tree.ts:1004</a></li></ul></aside></li></ul></section>
389
- <section class="tsd-panel tsd-member"><a id="DFSIterative" class="tsd-anchor"></a>
390
- <h3 class="tsd-anchor-link"><span>DFSIterative</span><a href="#DFSIterative" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
391
- <ul class="tsd-signatures">
392
- <li class="tsd-signature tsd-anchor-link" id="DFSIterative.DFSIterative-1"><span class="tsd-kind-call-signature">DFSIterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#DFSIterative.DFSIterative-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
393
- <li class="tsd-description">
394
- <div class="tsd-comment tsd-typography"><p>Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on their &#39;id&#39; property.</p>
395
- </div>
396
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree node IDs.</p>
397
-
398
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
399
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFSIterative">DFSIterative</a></p>
400
- <ul>
401
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1047">src/data-structures/binary-tree/abstract-binary-tree.ts:1047</a></li></ul></aside></li>
402
- <li class="tsd-signature tsd-anchor-link" id="DFSIterative.DFSIterative-2"><span class="tsd-kind-call-signature">DFSIterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#DFSIterative.DFSIterative-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
403
- <li class="tsd-description">
404
- <div class="tsd-comment tsd-typography"><p>Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.</p>
405
- </div>
406
- <div class="tsd-parameters">
407
- <h4 class="tsd-parameters-title">Parameters</h4>
408
- <ul class="tsd-parameter-list">
409
- <li>
410
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
411
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
412
- </div>
413
- <div class="tsd-comment tsd-typography"></div></li>
414
- <li>
415
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5>
416
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
417
- </div>
418
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
419
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of values corresponding to the specified property.</p>
420
-
421
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
422
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFSIterative">DFSIterative</a></p>
423
- <ul>
424
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1055">src/data-structures/binary-tree/abstract-binary-tree.ts:1055</a></li></ul></aside></li>
425
- <li class="tsd-signature tsd-anchor-link" id="DFSIterative.DFSIterative-3"><span class="tsd-kind-call-signature">DFSIterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#DFSIterative.DFSIterative-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
426
- <li class="tsd-description">
427
- <div class="tsd-comment tsd-typography"><p>Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates the &#39;val&#39; property of each node.</p>
428
- </div>
429
- <div class="tsd-parameters">
430
- <h4 class="tsd-parameters-title">Parameters</h4>
431
- <ul class="tsd-parameter-list">
432
- <li>
433
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
434
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
435
- </div>
436
- <div class="tsd-comment tsd-typography"></div></li>
437
- <li>
438
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
439
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
440
- </div>
441
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
442
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of &#39;val&#39; properties from each node.</p>
443
-
444
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
445
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFSIterative">DFSIterative</a></p>
446
- <ul>
447
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1063">src/data-structures/binary-tree/abstract-binary-tree.ts:1063</a></li></ul></aside></li>
448
- <li class="tsd-signature tsd-anchor-link" id="DFSIterative.DFSIterative-4"><span class="tsd-kind-call-signature">DFSIterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#DFSIterative.DFSIterative-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
449
- <li class="tsd-description">
450
- <div class="tsd-comment tsd-typography"><p>Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.</p>
451
- </div>
452
- <div class="tsd-parameters">
453
- <h4 class="tsd-parameters-title">Parameters</h4>
454
- <ul class="tsd-parameter-list">
455
- <li>
456
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
457
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
458
- </div>
459
- <div class="tsd-comment tsd-typography"></div></li>
460
- <li>
461
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
462
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
463
- </div>
464
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
465
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree nodes.</p>
466
-
467
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
468
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#DFSIterative">DFSIterative</a></p>
469
- <ul>
470
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1071">src/data-structures/binary-tree/abstract-binary-tree.ts:1071</a></li></ul></aside></li></ul></section>
471
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_accumulatedByPropertyName" class="tsd-anchor"></a>
472
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_accumulated<wbr/>By<wbr/>Property<wbr/>Name</span><a href="#_accumulatedByPropertyName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
473
- <ul class="tsd-signatures tsd-is-protected">
474
- <li class="tsd-signature tsd-anchor-link" id="_accumulatedByPropertyName._accumulatedByPropertyName-1"><span class="tsd-kind-call-signature">_accumulated<wbr/>By<wbr/>Property<wbr/>Name</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_accumulatedByPropertyName._accumulatedByPropertyName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
475
- <li class="tsd-description">
476
- <div class="tsd-comment tsd-typography"><p>The function <code>_accumulatedByPropertyName</code> accumulates values from a given node based on the specified property name.</p>
477
- </div>
478
- <div class="tsd-parameters">
479
- <h4 class="tsd-parameters-title">Parameters</h4>
480
- <ul class="tsd-parameter-list">
481
- <li>
482
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
483
- <div class="tsd-comment tsd-typography"><p>The <code>node</code> parameter is of type <code>N</code>, which represents a node in a data structure.</p>
484
- </div>
485
- <div class="tsd-comment tsd-typography"></div></li>
486
- <li>
487
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <a href="../types/NodeOrPropertyName.html" class="tsd-signature-type tsd-kind-type-alias">NodeOrPropertyName</a></h5>
488
- <div class="tsd-comment tsd-typography"><p>The <code>nodeOrPropertyName</code> parameter is an optional parameter that
489
- can be either a string representing a property name or a reference to a <code>Node</code> object. If it is a string, it
490
- specifies the property name to be used for accumulating values. If it is a <code>Node</code> object, it specifies</p>
491
- </div>
492
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
493
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
494
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
495
- <ul>
496
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1584">src/data-structures/binary-tree/abstract-binary-tree.ts:1584</a></li></ul></aside></li></ul></section>
497
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_addTo" class="tsd-anchor"></a>
498
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_add<wbr/>To</span><a href="#_addTo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
499
- <ul class="tsd-signatures tsd-is-protected">
500
- <li class="tsd-signature tsd-anchor-link" id="_addTo._addTo-1"><span class="tsd-kind-call-signature">_add<wbr/>To</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">newNode</span>, <span class="tsd-kind-parameter">parent</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#_addTo._addTo-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
501
- <li class="tsd-description">
502
- <div class="tsd-comment tsd-typography"><p>The function adds a new node to a binary tree if there is an available position.</p>
503
- </div>
504
- <div class="tsd-parameters">
505
- <h4 class="tsd-parameters-title">Parameters</h4>
506
- <ul class="tsd-parameter-list">
507
- <li>
508
- <h5><span class="tsd-kind-parameter">newNode</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
509
- <div class="tsd-comment tsd-typography"><p>The <code>newNode</code> parameter is of type <code>N | null</code>, which means it can either be a node of
510
- type <code>N</code> or <code>null</code>. It represents the node that you want to add to the binary tree.</p>
511
- </div>
512
- <div class="tsd-comment tsd-typography"></div></li>
513
- <li>
514
- <h5><span class="tsd-kind-parameter">parent</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
515
- <div class="tsd-comment tsd-typography"><p>The parent parameter is of type N, which represents a node in a binary tree.</p>
516
- </div>
517
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
518
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>either the left or right child node of the parent node, depending on which child is available for adding
519
- the new node. If a new node is added, the function also updates the size of the binary tree. If neither the left nor
520
- right child is available, the function returns undefined. If the parent node is null, the function also returns
521
- undefined.</p>
522
-
523
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
524
- <ul>
525
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1438">src/data-structures/binary-tree/abstract-binary-tree.ts:1438</a></li></ul></aside></li></ul></section>
526
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_clearResults" class="tsd-anchor"></a>
527
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_clear<wbr/>Results</span><a href="#_clearResults" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
528
- <ul class="tsd-signatures tsd-is-protected">
529
- <li class="tsd-signature tsd-anchor-link" id="_clearResults._clearResults-1"><span class="tsd-kind-call-signature">_clear<wbr/>Results</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_clearResults._clearResults-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
530
- <li class="tsd-description">
531
- <div class="tsd-comment tsd-typography"><p>The function <code>_clearResults</code> resets the values of several arrays used for tracking visited nodes and their
532
- properties.</p>
533
- </div>
534
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
535
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
536
- <ul>
537
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1526">src/data-structures/binary-tree/abstract-binary-tree.ts:1526</a></li></ul></aside></li></ul></section>
538
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_getResultByPropertyName" class="tsd-anchor"></a>
539
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_get<wbr/>Result<wbr/>By<wbr/>Property<wbr/>Name</span><a href="#_getResultByPropertyName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
540
- <ul class="tsd-signatures tsd-is-protected">
541
- <li class="tsd-signature tsd-anchor-link" id="_getResultByPropertyName._getResultByPropertyName-1"><span class="tsd-kind-call-signature">_get<wbr/>Result<wbr/>By<wbr/>Property<wbr/>Name</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/AbstractBinaryTreeNodeProperties.html" class="tsd-signature-type tsd-kind-type-alias">AbstractBinaryTreeNodeProperties</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span><a href="#_getResultByPropertyName._getResultByPropertyName-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
542
- <li class="tsd-description">
543
- <div class="tsd-comment tsd-typography"><p>The function <code>_getResultByPropertyName</code> returns the corresponding property value based on the given node or property
544
- name.</p>
545
- </div>
546
- <div class="tsd-parameters">
547
- <h4 class="tsd-parameters-title">Parameters</h4>
548
- <ul class="tsd-parameter-list">
549
- <li>
550
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <a href="../types/NodeOrPropertyName.html" class="tsd-signature-type tsd-kind-type-alias">NodeOrPropertyName</a></h5>
551
- <div class="tsd-comment tsd-typography"><p>The parameter <code>nodeOrPropertyName</code> is an optional parameter that
552
- can accept either a <code>NodeOrPropertyName</code> type or be undefined.</p>
553
- </div>
554
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
555
- <h4 class="tsd-returns-title">Returns <a href="../types/AbstractBinaryTreeNodeProperties.html" class="tsd-signature-type tsd-kind-type-alias">AbstractBinaryTreeNodeProperties</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The method <code>_getResultByPropertyName</code> returns an instance of <code>AbstractBinaryTreeNodeProperties&lt;N&gt;</code>.</p>
556
-
557
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
558
- <ul>
559
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1615">src/data-structures/binary-tree/abstract-binary-tree.ts:1615</a></li></ul></aside></li></ul></section>
560
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_pushByPropertyNameStopOrNot" class="tsd-anchor"></a>
561
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_push<wbr/>By<wbr/>Property<wbr/>Name<wbr/>Stop<wbr/>Or<wbr/>Not</span><a href="#_pushByPropertyNameStopOrNot" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
562
- <ul class="tsd-signatures tsd-is-protected">
563
- <li class="tsd-signature tsd-anchor-link" id="_pushByPropertyNameStopOrNot._pushByPropertyNameStopOrNot-1"><span class="tsd-kind-call-signature">_push<wbr/>By<wbr/>Property<wbr/>Name<wbr/>Stop<wbr/>Or<wbr/>Not</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">cur</span>, <span class="tsd-kind-parameter">result</span>, <span class="tsd-kind-parameter">nodeProperty</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">onlyOne</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span><a href="#_pushByPropertyNameStopOrNot._pushByPropertyNameStopOrNot-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
564
- <li class="tsd-description">
565
- <div class="tsd-comment tsd-typography"><p>The function checks if a given property of a binary tree node matches a specified value, and if so, adds the node to
566
- a result array.</p>
567
- </div>
568
- <div class="tsd-parameters">
569
- <h4 class="tsd-parameters-title">Parameters</h4>
570
- <ul class="tsd-parameter-list">
571
- <li>
572
- <h5><span class="tsd-kind-parameter">cur</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
573
- <div class="tsd-comment tsd-typography"><p>The current node being processed.</p>
574
- </div>
575
- <div class="tsd-comment tsd-typography"></div></li>
576
- <li>
577
- <h5><span class="tsd-kind-parameter">result</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h5>
578
- <div class="tsd-comment tsd-typography"><p>An array that stores the matching nodes.</p>
579
- </div>
580
- <div class="tsd-comment tsd-typography"></div></li>
581
- <li>
582
- <h5><span class="tsd-kind-parameter">nodeProperty</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
583
- <div class="tsd-comment tsd-typography"><p>The <code>nodeProperty</code> parameter is either a <code>BinaryTreeNodeId</code> or a <code>N</code>
584
- type. It represents the property value that we are comparing against in the switch statement.</p>
585
- </div>
586
- <div class="tsd-comment tsd-typography"></div></li>
587
- <li>
588
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
589
- <div class="tsd-comment tsd-typography"><p>The <code>propertyName</code> parameter is an optional parameter that
590
- specifies the property name to compare against when pushing nodes into the <code>result</code> array. It can be either <code>&#39;id&#39;</code>
591
- or <code>&#39;val&#39;</code>. If it is not provided or is not equal to <code>&#39;id&#39;</code> or <code>&#39;val&#39;</code>, the</p>
592
- </div>
593
- <div class="tsd-comment tsd-typography"></div></li>
594
- <li>
595
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">onlyOne</span>: <span class="tsd-signature-type">boolean</span></h5>
596
- <div class="tsd-comment tsd-typography"><p>The <code>onlyOne</code> parameter is an optional boolean parameter that determines whether to
597
- stop after finding the first matching node or continue searching for all matching nodes. If <code>onlyOne</code> is set to
598
- <code>true</code>, the function will stop after finding the first matching node and return <code>true</code>. If `onlyOne</p>
599
- </div>
600
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
601
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></h4><p>a boolean value indicating whether only one matching node should be pushed into the result array.</p>
602
-
603
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
604
- <ul>
605
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1548">src/data-structures/binary-tree/abstract-binary-tree.ts:1548</a></li></ul></aside></li></ul></section>
606
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setLoopType" class="tsd-anchor"></a>
607
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Loop<wbr/>Type</span><a href="#_setLoopType" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
608
- <ul class="tsd-signatures tsd-is-protected">
609
- <li class="tsd-signature tsd-anchor-link" id="_setLoopType._setLoopType-1"><span class="tsd-kind-call-signature">_set<wbr/>Loop<wbr/>Type</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setLoopType._setLoopType-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
610
- <li class="tsd-description">
611
- <div class="tsd-comment tsd-typography"><p>The function sets the loop type for a protected variable.</p>
612
- </div>
613
- <div class="tsd-parameters">
614
- <h4 class="tsd-parameters-title">Parameters</h4>
615
- <ul class="tsd-parameter-list">
616
- <li>
617
- <h5><span class="tsd-kind-parameter">value</span>: <a href="../enums/LoopType.html" class="tsd-signature-type tsd-kind-enum">LoopType</a></h5>
618
- <div class="tsd-comment tsd-typography"><p>The value parameter is of type LoopType.</p>
619
- </div>
620
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
621
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
622
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
623
- <ul>
624
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1466">src/data-structures/binary-tree/abstract-binary-tree.ts:1466</a></li></ul></aside></li></ul></section>
625
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setRoot" class="tsd-anchor"></a>
626
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Root</span><a href="#_setRoot" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
627
- <ul class="tsd-signatures tsd-is-protected">
628
- <li class="tsd-signature tsd-anchor-link" id="_setRoot._setRoot-1"><span class="tsd-kind-call-signature">_set<wbr/>Root</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">v</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setRoot._setRoot-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
629
- <li class="tsd-description">
630
- <div class="tsd-comment tsd-typography"><p>The function sets the root property of an object to a given value, and if the value is not null, it also sets the
631
- parent property of the value to undefined.</p>
632
- </div>
633
- <div class="tsd-parameters">
634
- <h4 class="tsd-parameters-title">Parameters</h4>
635
- <ul class="tsd-parameter-list">
636
- <li>
637
- <h5><span class="tsd-kind-parameter">v</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
638
- <div class="tsd-comment tsd-typography"><p>The parameter <code>v</code> is of type <code>N | null</code>, which means it can either be of type <code>N</code> or <code>null</code>.</p>
639
- </div>
640
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
641
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
642
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
643
- <ul>
644
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1507">src/data-structures/binary-tree/abstract-binary-tree.ts:1507</a></li></ul></aside></li></ul></section>
645
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setSize" class="tsd-anchor"></a>
646
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Size</span><a href="#_setSize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
647
- <ul class="tsd-signatures tsd-is-protected">
648
- <li class="tsd-signature tsd-anchor-link" id="_setSize._setSize-1"><span class="tsd-kind-call-signature">_set<wbr/>Size</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">v</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setSize._setSize-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
649
- <li class="tsd-description">
650
- <div class="tsd-comment tsd-typography"><p>The function sets the size of a protected variable.</p>
651
- </div>
652
- <div class="tsd-parameters">
653
- <h4 class="tsd-parameters-title">Parameters</h4>
654
- <ul class="tsd-parameter-list">
655
- <li>
656
- <h5><span class="tsd-kind-parameter">v</span>: <span class="tsd-signature-type">number</span></h5>
657
- <div class="tsd-comment tsd-typography"><p>number</p>
658
- </div>
659
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
660
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
661
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
662
- <ul>
663
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1518">src/data-structures/binary-tree/abstract-binary-tree.ts:1518</a></li></ul></aside></li></ul></section>
664
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setVisitedId" class="tsd-anchor"></a>
665
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Visited<wbr/>Id</span><a href="#_setVisitedId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
666
- <ul class="tsd-signatures tsd-is-protected">
667
- <li class="tsd-signature tsd-anchor-link" id="_setVisitedId._setVisitedId-1"><span class="tsd-kind-call-signature">_set<wbr/>Visited<wbr/>Id</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setVisitedId._setVisitedId-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
668
- <li class="tsd-description">
669
- <div class="tsd-comment tsd-typography"><p>The function sets the value of the <code>_visitedId</code> property in a protected manner.</p>
670
- </div>
671
- <div class="tsd-parameters">
672
- <h4 class="tsd-parameters-title">Parameters</h4>
673
- <ul class="tsd-parameter-list">
674
- <li>
675
- <h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5>
676
- <div class="tsd-comment tsd-typography"><p>value is an array of BinaryTreeNodeId values.</p>
677
- </div>
678
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
679
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
680
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
681
- <ul>
682
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1474">src/data-structures/binary-tree/abstract-binary-tree.ts:1474</a></li></ul></aside></li></ul></section>
683
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setVisitedLeftSum" class="tsd-anchor"></a>
684
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Visited<wbr/>Left<wbr/>Sum</span><a href="#_setVisitedLeftSum" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
685
- <ul class="tsd-signatures tsd-is-protected">
686
- <li class="tsd-signature tsd-anchor-link" id="_setVisitedLeftSum._setVisitedLeftSum-1"><span class="tsd-kind-call-signature">_set<wbr/>Visited<wbr/>Left<wbr/>Sum</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setVisitedLeftSum._setVisitedLeftSum-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
687
- <li class="tsd-description">
688
- <div class="tsd-comment tsd-typography"><p>The function sets the value of the <code>_visitedLeftSum</code> property to the provided array.</p>
689
- </div>
690
- <div class="tsd-parameters">
691
- <h4 class="tsd-parameters-title">Parameters</h4>
692
- <ul class="tsd-parameter-list">
693
- <li>
694
- <h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5>
695
- <div class="tsd-comment tsd-typography"><p>An array of numbers that represents the visited left sum.</p>
696
- </div>
697
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
698
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
699
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
700
- <ul>
701
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1498">src/data-structures/binary-tree/abstract-binary-tree.ts:1498</a></li></ul></aside></li></ul></section>
702
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setVisitedNode" class="tsd-anchor"></a>
703
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Visited<wbr/>Node</span><a href="#_setVisitedNode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
704
- <ul class="tsd-signatures tsd-is-protected">
705
- <li class="tsd-signature tsd-anchor-link" id="_setVisitedNode._setVisitedNode-1"><span class="tsd-kind-call-signature">_set<wbr/>Visited<wbr/>Node</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setVisitedNode._setVisitedNode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
706
- <li class="tsd-description">
707
- <div class="tsd-comment tsd-typography"><p>The function sets the value of the _visitedNode property.</p>
708
- </div>
709
- <div class="tsd-parameters">
710
- <h4 class="tsd-parameters-title">Parameters</h4>
711
- <ul class="tsd-parameter-list">
712
- <li>
713
- <h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h5>
714
- <div class="tsd-comment tsd-typography"><p>N[] is an array of elements of type N.</p>
715
- </div>
716
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
717
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
718
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
719
- <ul>
720
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1490">src/data-structures/binary-tree/abstract-binary-tree.ts:1490</a></li></ul></aside></li></ul></section>
721
- <section class="tsd-panel tsd-member tsd-is-protected"><a id="_setVisitedVal" class="tsd-anchor"></a>
722
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_set<wbr/>Visited<wbr/>Val</span><a href="#_setVisitedVal" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
723
- <ul class="tsd-signatures tsd-is-protected">
724
- <li class="tsd-signature tsd-anchor-link" id="_setVisitedVal._setVisitedVal-1"><span class="tsd-kind-call-signature">_set<wbr/>Visited<wbr/>Val</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#_setVisitedVal._setVisitedVal-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
725
- <li class="tsd-description">
726
- <div class="tsd-comment tsd-typography"><p>The function sets the value of the &quot;_visitedVal&quot; property to the given array.</p>
727
- </div>
728
- <div class="tsd-parameters">
729
- <h4 class="tsd-parameters-title">Parameters</h4>
730
- <ul class="tsd-parameter-list">
731
- <li>
732
- <h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h5>
733
- <div class="tsd-comment tsd-typography"><p>An array of type N.</p>
734
- </div>
735
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
736
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
737
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
738
- <ul>
739
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1482">src/data-structures/binary-tree/abstract-binary-tree.ts:1482</a></li></ul></aside></li></ul></section>
740
- <section class="tsd-panel tsd-member"><a id="add" class="tsd-anchor"></a>
741
- <h3 class="tsd-anchor-link"><span>add</span><a href="#add" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
742
- <ul class="tsd-signatures">
743
- <li class="tsd-signature tsd-anchor-link" id="add.add-1"><span class="tsd-kind-call-signature">add</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">idOrNode</span>, <span class="tsd-kind-parameter">val</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#add.add-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
744
- <li class="tsd-description">
745
- <div class="tsd-comment tsd-typography"><p>The <code>add</code> function adds a new node to a binary tree, either by ID or by creating a new node with a given value.</p>
746
- </div>
747
- <div class="tsd-parameters">
748
- <h4 class="tsd-parameters-title">Parameters</h4>
749
- <ul class="tsd-parameter-list">
750
- <li>
751
- <h5><span class="tsd-kind-parameter">idOrNode</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
752
- <div class="tsd-comment tsd-typography"><p>The <code>idOrNode</code> parameter can be either a <code>BinaryTreeNodeId</code>, which
753
- is a number representing the ID of a binary tree node, or it can be a <code>N</code> object, which represents a binary tree
754
- node itself. It can also be <code>null</code> if no node is specified.</p>
755
- </div>
756
- <div class="tsd-comment tsd-typography"></div></li>
757
- <li>
758
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">val</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span></h5>
759
- <div class="tsd-comment tsd-typography"><p>The <code>val</code> parameter is an optional value that can be assigned to the <code>val</code> property of the new node
760
- being added to the binary tree.</p>
761
- </div>
762
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
763
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The function <code>add</code> returns either the inserted node (<code>N</code>), <code>null</code>, or <code>undefined</code>.</p>
764
-
765
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
766
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#add">add</a></p>
767
- <ul>
768
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L255">src/data-structures/binary-tree/abstract-binary-tree.ts:255</a></li></ul></aside></li></ul></section>
769
- <section class="tsd-panel tsd-member"><a id="addMany" class="tsd-anchor"></a>
770
- <h3 class="tsd-anchor-link"><span>add<wbr/>Many</span><a href="#addMany" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
771
- <ul class="tsd-signatures">
772
- <li class="tsd-signature tsd-anchor-link" id="addMany.addMany-1"><span class="tsd-kind-call-signature">add<wbr/>Many</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">idsOrNodes</span>, <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><a href="#addMany.addMany-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
773
- <li class="tsd-description">
774
- <div class="tsd-comment tsd-typography"><p>The <code>addMany</code> function takes an array of binary tree node IDs or nodes, and optionally an array of corresponding data
775
- values, and adds them to the binary tree.</p>
776
- </div>
777
- <div class="tsd-parameters">
778
- <h4 class="tsd-parameters-title">Parameters</h4>
779
- <ul class="tsd-parameter-list">
780
- <li>
781
- <h5><span class="tsd-kind-parameter">idsOrNodes</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h5>
782
- <div class="tsd-comment tsd-typography"><p>An array of BinaryTreeNodeId or BinaryTreeNode
783
- objects, or null values.</p>
784
- </div>
785
- <div class="tsd-comment tsd-typography"></div></li>
786
- <li>
787
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></h5>
788
- <div class="tsd-comment tsd-typography"><p>The <code>data</code> parameter is an optional array of values (<code>N[&#39;val&#39;][]</code>) that corresponds to
789
- the nodes or node IDs being added. It is used to set the value of each node being added. If <code>data</code> is not provided,
790
- the value of the nodes will be <code>undefined</code>.</p>
791
- </div>
792
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
793
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h4><p>The function <code>addMany</code> returns an array of <code>N</code>, <code>null</code>, or <code>undefined</code> values.</p>
794
-
795
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
796
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#addMany">addMany</a></p>
797
- <ul>
798
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L314">src/data-structures/binary-tree/abstract-binary-tree.ts:314</a></li></ul></aside></li></ul></section>
799
- <section class="tsd-panel tsd-member"><a id="clear" class="tsd-anchor"></a>
800
- <h3 class="tsd-anchor-link"><span>clear</span><a href="#clear" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
801
- <ul class="tsd-signatures">
802
- <li class="tsd-signature tsd-anchor-link" id="clear.clear-1"><span class="tsd-kind-call-signature">clear</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#clear.clear-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
803
- <li class="tsd-description">
804
- <div class="tsd-comment tsd-typography"><p>The clear() function resets the root, size, and maxId properties to their initial values.</p>
805
- </div>
806
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
807
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
808
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#clear">clear</a></p>
809
- <ul>
810
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L227">src/data-structures/binary-tree/abstract-binary-tree.ts:227</a></li></ul></aside></li></ul></section>
811
- <section class="tsd-panel tsd-member"><a id="createNode" class="tsd-anchor"></a>
812
- <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagAbstract">Abstract</code> <span>create<wbr/>Node</span><a href="#createNode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
813
- <ul class="tsd-signatures">
814
- <li class="tsd-signature tsd-anchor-link" id="createNode.createNode-1"><span class="tsd-kind-call-signature">create<wbr/>Node</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span>, <span class="tsd-kind-parameter">val</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#createNode.createNode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
815
- <li class="tsd-description">
816
- <div class="tsd-parameters">
817
- <h4 class="tsd-parameters-title">Parameters</h4>
818
- <ul class="tsd-parameter-list">
819
- <li>
820
- <h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></h5></li>
821
- <li>
822
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">val</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span></h5></li></ul></div>
823
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><aside class="tsd-sources">
824
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#createNode">createNode</a></p>
825
- <ul>
826
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L196">src/data-structures/binary-tree/abstract-binary-tree.ts:196</a></li></ul></aside></li></ul></section>
827
- <section class="tsd-panel tsd-member"><a id="fill" class="tsd-anchor"></a>
828
- <h3 class="tsd-anchor-link"><span>fill</span><a href="#fill" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
829
- <ul class="tsd-signatures">
830
- <li class="tsd-signature tsd-anchor-link" id="fill.fill-1"><span class="tsd-kind-call-signature">fill</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">idsOrNodes</span>, <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#fill.fill-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
831
- <li class="tsd-description">
832
- <div class="tsd-comment tsd-typography"><p>The <code>fill</code> function clears the binary tree and adds multiple nodes with the given IDs or nodes and optional data.</p>
833
- </div>
834
- <div class="tsd-parameters">
835
- <h4 class="tsd-parameters-title">Parameters</h4>
836
- <ul class="tsd-parameter-list">
837
- <li>
838
- <h5><span class="tsd-kind-parameter">idsOrNodes</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span></h5>
839
- <div class="tsd-comment tsd-typography"><p>The <code>idsOrNodes</code> parameter is an array that can contain either
840
- <code>BinaryTreeNodeId</code> or <code>N</code> values.</p>
841
- </div>
842
- <div class="tsd-comment tsd-typography"></div></li>
843
- <li>
844
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h5>
845
- <div class="tsd-comment tsd-typography"><p>The <code>data</code> parameter is an optional array of values that will be assigned to
846
- the nodes being added. If provided, the length of the <code>data</code> array should be equal to the length of the <code>idsOrNodes</code>
847
- array. Each value in the <code>data</code> array will be assigned to the</p>
848
- </div>
849
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
850
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>The method is returning a boolean value.</p>
851
-
852
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
853
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#fill">fill</a></p>
854
- <ul>
855
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L345">src/data-structures/binary-tree/abstract-binary-tree.ts:345</a></li></ul></aside></li></ul></section>
856
- <section class="tsd-panel tsd-member"><a id="get" class="tsd-anchor"></a>
857
- <h3 class="tsd-anchor-link"><span>get</span><a href="#get" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
858
- <ul class="tsd-signatures">
859
- <li class="tsd-signature tsd-anchor-link" id="get.get-1"><span class="tsd-kind-call-signature">get</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeProperty</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#get.get-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
860
- <li class="tsd-description">
861
- <div class="tsd-comment tsd-typography"><p>The function returns the first node that matches the given property name and value, or null if no matching node is
862
- found.</p>
863
- </div>
864
- <div class="tsd-parameters">
865
- <h4 class="tsd-parameters-title">Parameters</h4>
866
- <ul class="tsd-parameter-list">
867
- <li>
868
- <h5><span class="tsd-kind-parameter">nodeProperty</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
869
- <div class="tsd-comment tsd-typography"><p>The <code>nodeProperty</code> parameter can be either a <code>BinaryTreeNodeId</code> or <code>N</code>.
870
- It represents the property of the binary tree node that you want to search for.</p>
871
- </div>
872
- <div class="tsd-comment tsd-typography"></div></li>
873
- <li>
874
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
875
- <div class="tsd-comment tsd-typography"><p>The <code>propertyName</code> parameter is an optional parameter that
876
- specifies the property name to be used for searching the binary tree nodes. If this parameter is not provided, the
877
- default value is set to <code>&#39;id&#39;</code>.</p>
878
- </div>
879
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
880
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>either the value of the specified property of the node, or the node itself if no property name is provided.
881
- If no matching node is found, it returns null.</p>
882
-
883
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
884
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#get">get</a></p>
885
- <ul>
886
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L599">src/data-structures/binary-tree/abstract-binary-tree.ts:599</a></li></ul></aside></li></ul></section>
887
- <section class="tsd-panel tsd-member"><a id="getDepth" class="tsd-anchor"></a>
888
- <h3 class="tsd-anchor-link"><span>get<wbr/>Depth</span><a href="#getDepth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
889
- <ul class="tsd-signatures">
890
- <li class="tsd-signature tsd-anchor-link" id="getDepth.getDepth-1"><span class="tsd-kind-call-signature">get<wbr/>Depth</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">beginRoot</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getDepth.getDepth-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
891
- <li class="tsd-description">
892
- <div class="tsd-comment tsd-typography"><p>The function calculates the depth of a node in a binary tree.</p>
893
- </div>
894
- <div class="tsd-parameters">
895
- <h4 class="tsd-parameters-title">Parameters</h4>
896
- <ul class="tsd-parameter-list">
897
- <li>
898
- <h5><span class="tsd-kind-parameter">beginRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
899
- <div class="tsd-comment tsd-typography"><p>The <code>beginRoot</code> parameter can be one of the following:</p>
900
- </div>
901
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
902
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>the depth of the given node or binary tree.</p>
903
-
904
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
905
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getDepth">getDepth</a></p>
906
- <ul>
907
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L412">src/data-structures/binary-tree/abstract-binary-tree.ts:412</a></li></ul></aside></li></ul></section>
908
- <section class="tsd-panel tsd-member"><a id="getHeight" class="tsd-anchor"></a>
909
- <h3 class="tsd-anchor-link"><span>get<wbr/>Height</span><a href="#getHeight" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
910
- <ul class="tsd-signatures">
911
- <li class="tsd-signature tsd-anchor-link" id="getHeight.getHeight-1"><span class="tsd-kind-call-signature">get<wbr/>Height</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">beginRoot</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getHeight.getHeight-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
912
- <li class="tsd-description">
913
- <div class="tsd-comment tsd-typography"><p>The <code>getHeight</code> function calculates the maximum height of a binary tree, either recursively or iteratively.</p>
914
- </div>
915
- <div class="tsd-parameters">
916
- <h4 class="tsd-parameters-title">Parameters</h4>
917
- <ul class="tsd-parameter-list">
918
- <li>
919
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">beginRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
920
- <div class="tsd-comment tsd-typography"><p>The <code>beginRoot</code> parameter is optional and can be of type <code>N</code> (a
921
- generic type representing a node in a binary tree), <code>BinaryTreeNodeId</code> (a type representing the ID of a binary tree
922
- node), or <code>null</code>.</p>
923
- </div>
924
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
925
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>the height of the binary tree.</p>
926
-
927
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
928
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getHeight">getHeight</a></p>
929
- <ul>
930
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L430">src/data-structures/binary-tree/abstract-binary-tree.ts:430</a></li></ul></aside></li></ul></section>
931
- <section class="tsd-panel tsd-member"><a id="getLeftMost" class="tsd-anchor"></a>
932
- <h3 class="tsd-anchor-link"><span>get<wbr/>Left<wbr/>Most</span><a href="#getLeftMost" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
933
- <ul class="tsd-signatures">
934
- <li class="tsd-signature tsd-anchor-link" id="getLeftMost.getLeftMost-1"><span class="tsd-kind-call-signature">get<wbr/>Left<wbr/>Most</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#getLeftMost.getLeftMost-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
935
- <li class="tsd-description">
936
- <div class="tsd-comment tsd-typography"><p>The function <code>getLeftMost</code> returns the leftmost node in a binary tree, starting from a specified node or the root if
937
- no node is specified.
938
- generic type representing a node in a binary tree), <code>BinaryTreeNodeId</code> (a type representing the ID of a binary tree
939
- node), or <code>null</code>.</p>
940
- </div>
941
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The function <code>getLeftMost</code> returns the leftmost node in a binary tree. If the <code>beginRoot</code> parameter is
942
- provided, it starts the traversal from that node. If <code>beginRoot</code> is not provided or is <code>null</code>, it starts the traversal
943
- from the root of the binary tree. The function returns the leftmost node found during the traversal. If no leftmost
944
- node is found (</p>
945
-
946
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
947
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getLeftMost">getLeftMost</a></p>
948
- <ul>
949
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L638">src/data-structures/binary-tree/abstract-binary-tree.ts:638</a></li></ul></aside></li>
950
- <li class="tsd-signature tsd-anchor-link" id="getLeftMost.getLeftMost-2"><span class="tsd-kind-call-signature">get<wbr/>Left<wbr/>Most</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#getLeftMost.getLeftMost-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
951
- <li class="tsd-description">
952
- <div class="tsd-comment tsd-typography"><p>The function <code>getLeftMost</code> returns the leftmost node in a binary tree, starting from a specified node or the root if
953
- no node is specified.</p>
954
- </div>
955
- <div class="tsd-parameters">
956
- <h4 class="tsd-parameters-title">Parameters</h4>
957
- <ul class="tsd-parameter-list">
958
- <li>
959
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
960
- <div class="tsd-comment tsd-typography"><p>The <code>beginRoot</code> parameter is optional and can be of type <code>N</code> (a
961
- generic type representing a node in a binary tree), <code>BinaryTreeNodeId</code> (a type representing the ID of a binary tree
962
- node).</p>
963
- </div>
964
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
965
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The function <code>getLeftMost</code> returns the leftmost node in a binary tree. If the <code>beginRoot</code> parameter is
966
- provided, it starts the traversal from that node. If <code>beginRoot</code> is not provided or is <code>null</code>, it starts the traversal
967
- from the root of the binary tree. The function returns the leftmost node found during the traversal. If no leftmost
968
- node is found (</p>
969
-
970
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
971
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getLeftMost">getLeftMost</a></p>
972
- <ul>
973
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L651">src/data-structures/binary-tree/abstract-binary-tree.ts:651</a></li></ul></aside></li></ul></section>
974
- <section class="tsd-panel tsd-member"><a id="getMinHeight" class="tsd-anchor"></a>
975
- <h3 class="tsd-anchor-link"><span>get<wbr/>Min<wbr/>Height</span><a href="#getMinHeight" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
976
- <ul class="tsd-signatures">
977
- <li class="tsd-signature tsd-anchor-link" id="getMinHeight.getMinHeight-1"><span class="tsd-kind-call-signature">get<wbr/>Min<wbr/>Height</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">beginRoot</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getMinHeight.getMinHeight-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
978
- <li class="tsd-description">
979
- <div class="tsd-comment tsd-typography"><p>The <code>getMinHeight</code> function calculates the minimum height of a binary tree using either a recursive or iterative
980
- approach.</p>
981
- </div>
982
- <div class="tsd-parameters">
983
- <h4 class="tsd-parameters-title">Parameters</h4>
984
- <ul class="tsd-parameter-list">
985
- <li>
986
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">beginRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
987
- <div class="tsd-comment tsd-typography"><p>The <code>beginRoot</code> parameter is an optional parameter of type <code>N</code> or <code>null</code>. It
988
- represents the starting node from which to calculate the minimum height of a binary tree. If no value is provided
989
- for <code>beginRoot</code>, the <code>this.root</code> property is used as the default value.</p>
990
- </div>
991
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
992
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>The function <code>getMinHeight</code> returns the minimum height of the binary tree.</p>
993
-
994
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
995
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getMinHeight">getMinHeight</a></p>
996
- <ul>
997
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L479">src/data-structures/binary-tree/abstract-binary-tree.ts:479</a></li></ul></aside></li></ul></section>
998
- <section class="tsd-panel tsd-member"><a id="getNodes" class="tsd-anchor"></a>
999
- <h3 class="tsd-anchor-link"><span>get<wbr/>Nodes</span><a href="#getNodes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1000
- <ul class="tsd-signatures">
1001
- <li class="tsd-signature tsd-anchor-link" id="getNodes.getNodes-1"><span class="tsd-kind-call-signature">get<wbr/>Nodes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeProperty</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">onlyOne</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#getNodes.getNodes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1002
- <li class="tsd-description">
1003
- <div class="tsd-comment tsd-typography"><p>The function <code>getNodes</code> returns an array of nodes that match a given property name and value in a binary tree.</p>
1004
- </div>
1005
- <div class="tsd-parameters">
1006
- <h4 class="tsd-parameters-title">Parameters</h4>
1007
- <ul class="tsd-parameter-list">
1008
- <li>
1009
- <h5><span class="tsd-kind-parameter">nodeProperty</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1010
- <div class="tsd-comment tsd-typography"><p>The <code>nodeProperty</code> parameter can be either a <code>BinaryTreeNodeId</code> or a
1011
- generic type <code>N</code>. It represents the property of the binary tree node that you want to search for.</p>
1012
- </div>
1013
- <div class="tsd-comment tsd-typography"></div></li>
1014
- <li>
1015
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
1016
- <div class="tsd-comment tsd-typography"><p>The <code>propertyName</code> parameter is an optional parameter that
1017
- specifies the property name to use when searching for nodes. If not provided, it defaults to &#39;id&#39;.</p>
1018
- </div>
1019
- <div class="tsd-comment tsd-typography"></div></li>
1020
- <li>
1021
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">onlyOne</span>: <span class="tsd-signature-type">boolean</span></h5>
1022
- <div class="tsd-comment tsd-typography"><p>The <code>onlyOne</code> parameter is an optional boolean parameter that determines whether to
1023
- return only one node that matches the given <code>nodeProperty</code> or <code>propertyName</code>. If <code>onlyOne</code> is set to <code>true</code>, the
1024
- function will stop traversing the tree and return the first matching node. If `only</p>
1025
- </div>
1026
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1027
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>an array of nodes (type N).</p>
1028
-
1029
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1030
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getNodes">getNodes</a></p>
1031
- <ul>
1032
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L544">src/data-structures/binary-tree/abstract-binary-tree.ts:544</a></li></ul></aside></li></ul></section>
1033
- <section class="tsd-panel tsd-member"><a id="getPathToRoot" class="tsd-anchor"></a>
1034
- <h3 class="tsd-anchor-link"><span>get<wbr/>Path<wbr/>To<wbr/>Root</span><a href="#getPathToRoot" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1035
- <ul class="tsd-signatures">
1036
- <li class="tsd-signature tsd-anchor-link" id="getPathToRoot.getPathToRoot-1"><span class="tsd-kind-call-signature">get<wbr/>Path<wbr/>To<wbr/>Root</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">isReverse</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#getPathToRoot.getPathToRoot-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1037
- <li class="tsd-description">
1038
- <div class="tsd-comment tsd-typography"><p>The function <code>getPathToRoot</code> returns an array of nodes representing the path from a given node to the root node, with
1039
- an option to reverse the order of the nodes.</p>
1040
- </div>
1041
- <div class="tsd-parameters">
1042
- <h4 class="tsd-parameters-title">Parameters</h4>
1043
- <ul class="tsd-parameter-list">
1044
- <li>
1045
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1046
- <div class="tsd-comment tsd-typography"><p>The <code>node</code> parameter represents a node in a tree structure. It is of type <code>N</code>, which could be any
1047
- type that represents a node in your specific implementation.</p>
1048
- </div>
1049
- <div class="tsd-comment tsd-typography"></div></li>
1050
- <li>
1051
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">isReverse</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
1052
- <div class="tsd-comment tsd-typography"><p>The <code>isReverse</code> parameter is a boolean flag that determines whether the resulting
1053
- path should be reversed or not. If <code>isReverse</code> is set to <code>true</code>, the path will be reversed before returning it. If
1054
- <code>isReverse</code> is set to <code>false</code> or not provided, the path will</p>
1055
- </div>
1056
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1057
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>The function <code>getPathToRoot</code> returns an array of nodes (<code>N[]</code>).</p>
1058
-
1059
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1060
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getPathToRoot">getPathToRoot</a></p>
1061
- <ul>
1062
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L615">src/data-structures/binary-tree/abstract-binary-tree.ts:615</a></li></ul></aside></li></ul></section>
1063
- <section class="tsd-panel tsd-member"><a id="getPredecessor" class="tsd-anchor"></a>
1064
- <h3 class="tsd-anchor-link"><span>get<wbr/>Predecessor</span><a href="#getPredecessor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1065
- <ul class="tsd-signatures">
1066
- <li class="tsd-signature tsd-anchor-link" id="getPredecessor.getPredecessor-1"><span class="tsd-kind-call-signature">get<wbr/>Predecessor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#getPredecessor.getPredecessor-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1067
- <li class="tsd-description">
1068
- <div class="tsd-comment tsd-typography"><p>The function returns the predecessor of a given node in a binary tree.</p>
1069
- </div>
1070
- <div class="tsd-parameters">
1071
- <h4 class="tsd-parameters-title">Parameters</h4>
1072
- <ul class="tsd-parameter-list">
1073
- <li>
1074
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1075
- <div class="tsd-comment tsd-typography"><p>The parameter <code>node</code> is a BinaryTreeNode object, representing a node in a binary tree.</p>
1076
- </div>
1077
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1078
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>the predecessor of the given node in a binary tree.</p>
1079
-
1080
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1081
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getPredecessor">getPredecessor</a></p>
1082
- <ul>
1083
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1284">src/data-structures/binary-tree/abstract-binary-tree.ts:1284</a></li></ul></aside></li></ul></section>
1084
- <section class="tsd-panel tsd-member"><a id="getRightMost" class="tsd-anchor"></a>
1085
- <h3 class="tsd-anchor-link"><span>get<wbr/>Right<wbr/>Most</span><a href="#getRightMost" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1086
- <ul class="tsd-signatures">
1087
- <li class="tsd-signature tsd-anchor-link" id="getRightMost.getRightMost-1"><span class="tsd-kind-call-signature">get<wbr/>Right<wbr/>Most</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#getRightMost.getRightMost-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1088
- <li class="tsd-description">
1089
- <div class="tsd-comment tsd-typography"><p>The <code>getRightMost</code> function returns the rightmost node in a binary tree, either recursively or iteratively using tail
1090
- recursion optimization.</p>
1091
- </div>
1092
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The <code>getRightMost</code> function returns the rightmost node in a binary tree. It returns the
1093
- rightmost node starting from the root of the binary tree.</p>
1094
-
1095
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1096
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getRightMost">getRightMost</a></p>
1097
- <ul>
1098
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L694">src/data-structures/binary-tree/abstract-binary-tree.ts:694</a></li></ul></aside></li>
1099
- <li class="tsd-signature tsd-anchor-link" id="getRightMost.getRightMost-2"><span class="tsd-kind-call-signature">get<wbr/>Right<wbr/>Most</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#getRightMost.getRightMost-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1100
- <li class="tsd-description">
1101
- <div class="tsd-comment tsd-typography"><p>The <code>getRightMost</code> function returns the rightmost node in a binary tree, either recursively or iteratively using tail
1102
- recursion optimization.</p>
1103
- </div>
1104
- <div class="tsd-parameters">
1105
- <h4 class="tsd-parameters-title">Parameters</h4>
1106
- <ul class="tsd-parameter-list">
1107
- <li>
1108
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1109
- <div class="tsd-comment tsd-typography"><p>The <code>node</code> parameter is an optional parameter of type <code>N</code> or <code>null</code>. It represents the
1110
- starting node from which we want to find the rightmost node. If no node is provided, the function will default to
1111
- using the root node of the data structure.</p>
1112
- </div>
1113
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1114
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The <code>getRightMost</code> function returns the rightmost node in a binary tree. It returns the rightmost node
1115
- starting from that node.</p>
1116
-
1117
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1118
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getRightMost">getRightMost</a></p>
1119
- <ul>
1120
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L705">src/data-structures/binary-tree/abstract-binary-tree.ts:705</a></li></ul></aside></li></ul></section>
1121
- <section class="tsd-panel tsd-member"><a id="getSubTreeSize" class="tsd-anchor"></a>
1122
- <h3 class="tsd-anchor-link"><span>get<wbr/>Sub<wbr/>Tree<wbr/>Size</span><a href="#getSubTreeSize" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1123
- <ul class="tsd-signatures">
1124
- <li class="tsd-signature tsd-anchor-link" id="getSubTreeSize.getSubTreeSize-1"><span class="tsd-kind-call-signature">get<wbr/>Sub<wbr/>Tree<wbr/>Size</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">subTreeRoot</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getSubTreeSize.getSubTreeSize-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1125
- <li class="tsd-description">
1126
- <div class="tsd-comment tsd-typography"><p>The function calculates the size of a subtree by traversing it either recursively or iteratively.</p>
1127
- </div>
1128
- <div class="tsd-parameters">
1129
- <h4 class="tsd-parameters-title">Parameters</h4>
1130
- <ul class="tsd-parameter-list">
1131
- <li>
1132
- <h5><span class="tsd-kind-parameter">subTreeRoot</span>: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1133
- <div class="tsd-comment tsd-typography"><p>The <code>subTreeRoot</code> parameter represents the root node of a subtree in a
1134
- binary tree.</p>
1135
- </div>
1136
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1137
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>the size of the subtree rooted at <code>subTreeRoot</code>.</p>
1138
-
1139
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1140
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#getSubTreeSize">getSubTreeSize</a></p>
1141
- <ul>
1142
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L789">src/data-structures/binary-tree/abstract-binary-tree.ts:789</a></li></ul></aside></li></ul></section>
1143
- <section class="tsd-panel tsd-member"><a id="has" class="tsd-anchor"></a>
1144
- <h3 class="tsd-anchor-link"><span>has</span><a href="#has" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1145
- <ul class="tsd-signatures">
1146
- <li class="tsd-signature tsd-anchor-link" id="has.has-1"><span class="tsd-kind-call-signature">has</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeProperty</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#has.has-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1147
- <li class="tsd-description">
1148
- <div class="tsd-comment tsd-typography"><p>The function checks if a binary tree node has a specific property.</p>
1149
- </div>
1150
- <div class="tsd-parameters">
1151
- <h4 class="tsd-parameters-title">Parameters</h4>
1152
- <ul class="tsd-parameter-list">
1153
- <li>
1154
- <h5><span class="tsd-kind-parameter">nodeProperty</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1155
- <div class="tsd-comment tsd-typography"><p>The <code>nodeProperty</code> parameter can be either a <code>BinaryTreeNodeId</code> or <code>N</code>.
1156
- It represents the property of the binary tree node that you want to check.</p>
1157
- </div>
1158
- <div class="tsd-comment tsd-typography"></div></li>
1159
- <li>
1160
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
1161
- <div class="tsd-comment tsd-typography"><p>The <code>propertyName</code> parameter is an optional parameter that
1162
- specifies the name of the property to be checked in the nodes. If not provided, it defaults to &#39;id&#39;.</p>
1163
- </div>
1164
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1165
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>a boolean value.</p>
1166
-
1167
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1168
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#has">has</a></p>
1169
- <ul>
1170
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L582">src/data-structures/binary-tree/abstract-binary-tree.ts:582</a></li></ul></aside></li></ul></section>
1171
- <section class="tsd-panel tsd-member"><a id="isBST" class="tsd-anchor"></a>
1172
- <h3 class="tsd-anchor-link"><span>isBST</span><a href="#isBST" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1173
- <ul class="tsd-signatures">
1174
- <li class="tsd-signature tsd-anchor-link" id="isBST.isBST-1"><span class="tsd-kind-call-signature">isBST</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isBST.isBST-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1175
- <li class="tsd-description">
1176
- <div class="tsd-comment tsd-typography"><p>The function isBST checks if the binary tree is valid binary search tree.</p>
1177
- </div>
1178
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>The <code>isBST()</code> function is returning a boolean value.</p>
1179
-
1180
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1181
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#isBST">isBST</a></p>
1182
- <ul>
1183
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L779">src/data-structures/binary-tree/abstract-binary-tree.ts:779</a></li></ul></aside></li></ul></section>
1184
- <section class="tsd-panel tsd-member"><a id="isEmpty" class="tsd-anchor"></a>
1185
- <h3 class="tsd-anchor-link"><span>is<wbr/>Empty</span><a href="#isEmpty" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1186
- <ul class="tsd-signatures">
1187
- <li class="tsd-signature tsd-anchor-link" id="isEmpty.isEmpty-1"><span class="tsd-kind-call-signature">is<wbr/>Empty</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isEmpty.isEmpty-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1188
- <li class="tsd-description">
1189
- <div class="tsd-comment tsd-typography"><p>The function checks if the size of an object is equal to zero and returns a boolean value.</p>
1190
- </div>
1191
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>A boolean value indicating whether the size of the object is 0 or not.</p>
1192
-
1193
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1194
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#isEmpty">isEmpty</a></p>
1195
- <ul>
1196
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L237">src/data-structures/binary-tree/abstract-binary-tree.ts:237</a></li></ul></aside></li></ul></section>
1197
- <section class="tsd-panel tsd-member"><a id="isPerfectlyBalanced" class="tsd-anchor"></a>
1198
- <h3 class="tsd-anchor-link"><span>is<wbr/>Perfectly<wbr/>Balanced</span><a href="#isPerfectlyBalanced" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1199
- <ul class="tsd-signatures">
1200
- <li class="tsd-signature tsd-anchor-link" id="isPerfectlyBalanced.isPerfectlyBalanced-1"><span class="tsd-kind-call-signature">is<wbr/>Perfectly<wbr/>Balanced</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">beginRoot</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isPerfectlyBalanced.isPerfectlyBalanced-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1201
- <li class="tsd-description">
1202
- <div class="tsd-comment tsd-typography"><p>The function checks if a binary tree is perfectly balanced by comparing the minimum height and the height of the
1203
- tree.</p>
1204
- </div>
1205
- <div class="tsd-parameters">
1206
- <h4 class="tsd-parameters-title">Parameters</h4>
1207
- <ul class="tsd-parameter-list">
1208
- <li>
1209
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">beginRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1210
- <div class="tsd-comment tsd-typography"><p>The parameter <code>beginRoot</code> is of type <code>N</code> or <code>null</code>. It represents the root node of a
1211
- tree or null if the tree is empty.</p>
1212
- </div>
1213
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1214
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>The method is returning a boolean value.</p>
1215
-
1216
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1217
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#isPerfectlyBalanced">isPerfectlyBalanced</a></p>
1218
- <ul>
1219
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L529">src/data-structures/binary-tree/abstract-binary-tree.ts:529</a></li></ul></aside></li></ul></section>
1220
- <section class="tsd-panel tsd-member"><a id="isSubtreeBST" class="tsd-anchor"></a>
1221
- <h3 class="tsd-anchor-link"><span>is<wbr/>SubtreeBST</span><a href="#isSubtreeBST" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1222
- <ul class="tsd-signatures">
1223
- <li class="tsd-signature tsd-anchor-link" id="isSubtreeBST.isSubtreeBST-1"><span class="tsd-kind-call-signature">is<wbr/>SubtreeBST</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isSubtreeBST.isSubtreeBST-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1224
- <li class="tsd-description">
1225
- <div class="tsd-comment tsd-typography"><p>The function checks if a binary search tree is valid by traversing it either recursively or iteratively.</p>
1226
- </div>
1227
- <div class="tsd-parameters">
1228
- <h4 class="tsd-parameters-title">Parameters</h4>
1229
- <ul class="tsd-parameter-list">
1230
- <li>
1231
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1232
- <div class="tsd-comment tsd-typography"><p>The <code>node</code> parameter represents the root node of a binary search tree (BST).</p>
1233
- </div>
1234
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1235
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>a boolean value.</p>
1236
-
1237
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1238
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#isSubtreeBST">isSubtreeBST</a></p>
1239
- <ul>
1240
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L745">src/data-structures/binary-tree/abstract-binary-tree.ts:745</a></li></ul></aside></li></ul></section>
1241
- <section class="tsd-panel tsd-member"><a id="levelIterative" class="tsd-anchor"></a>
1242
- <h3 class="tsd-anchor-link"><span>level<wbr/>Iterative</span><a href="#levelIterative" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1243
- <ul class="tsd-signatures">
1244
- <li class="tsd-signature tsd-anchor-link" id="levelIterative.levelIterative-1"><span class="tsd-kind-call-signature">level<wbr/>Iterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#levelIterative.levelIterative-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1245
- <li class="tsd-description">
1246
- <div class="tsd-comment tsd-typography"><p>Performs a level-order traversal on a binary tree starting from the specified node and accumulates properties of each node based on their &#39;id&#39; property.</p>
1247
- </div>
1248
- <div class="tsd-parameters">
1249
- <h4 class="tsd-parameters-title">Parameters</h4>
1250
- <ul class="tsd-parameter-list">
1251
- <li>
1252
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1253
- <div class="tsd-comment tsd-typography"><p>The starting node for the level order traversal. If null, the root node of the tree is used as the starting node.</p>
1254
- </div>
1255
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1256
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree node IDs.</p>
1257
-
1258
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1259
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#levelIterative">levelIterative</a></p>
1260
- <ul>
1261
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1130">src/data-structures/binary-tree/abstract-binary-tree.ts:1130</a></li></ul></aside></li>
1262
- <li class="tsd-signature tsd-anchor-link" id="levelIterative.levelIterative-2"><span class="tsd-kind-call-signature">level<wbr/>Iterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#levelIterative.levelIterative-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1263
- <li class="tsd-description">
1264
- <div class="tsd-comment tsd-typography"><p>Performs a level-order traversal on a binary tree starting from the specified node and accumulates properties of each node based on the specified property name.</p>
1265
- </div>
1266
- <div class="tsd-parameters">
1267
- <h4 class="tsd-parameters-title">Parameters</h4>
1268
- <ul class="tsd-parameter-list">
1269
- <li>
1270
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1271
- <div class="tsd-comment tsd-typography"><p>The starting node for the level order traversal. If null, the root node of the tree is used as the starting node.</p>
1272
- </div>
1273
- <div class="tsd-comment tsd-typography"></div></li>
1274
- <li>
1275
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5>
1276
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
1277
- </div>
1278
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1279
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of values corresponding to the specified property.</p>
1280
-
1281
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1282
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#levelIterative">levelIterative</a></p>
1283
- <ul>
1284
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1138">src/data-structures/binary-tree/abstract-binary-tree.ts:1138</a></li></ul></aside></li>
1285
- <li class="tsd-signature tsd-anchor-link" id="levelIterative.levelIterative-3"><span class="tsd-kind-call-signature">level<wbr/>Iterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><a href="#levelIterative.levelIterative-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1286
- <li class="tsd-description">
1287
- <div class="tsd-comment tsd-typography"><p>Performs a level-order traversal on a binary tree starting from the specified node and accumulates the &#39;val&#39; property of each node.</p>
1288
- </div>
1289
- <div class="tsd-parameters">
1290
- <h4 class="tsd-parameters-title">Parameters</h4>
1291
- <ul class="tsd-parameter-list">
1292
- <li>
1293
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1294
- <div class="tsd-comment tsd-typography"><p>The starting node for the level order traversal. If null, the root node of the tree is used as the starting node.</p>
1295
- </div>
1296
- <div class="tsd-comment tsd-typography"></div></li>
1297
- <li>
1298
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
1299
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
1300
- </div>
1301
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1302
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of &#39;val&#39; properties from each node.</p>
1303
-
1304
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1305
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#levelIterative">levelIterative</a></p>
1306
- <ul>
1307
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1146">src/data-structures/binary-tree/abstract-binary-tree.ts:1146</a></li></ul></aside></li>
1308
- <li class="tsd-signature tsd-anchor-link" id="levelIterative.levelIterative-4"><span class="tsd-kind-call-signature">level<wbr/>Iterative</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#levelIterative.levelIterative-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1309
- <li class="tsd-description">
1310
- <div class="tsd-comment tsd-typography"><p>Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.</p>
1311
- </div>
1312
- <div class="tsd-parameters">
1313
- <h4 class="tsd-parameters-title">Parameters</h4>
1314
- <ul class="tsd-parameter-list">
1315
- <li>
1316
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1317
- <div class="tsd-comment tsd-typography"><p>The starting node for the level order traversal. If null, the root node of the tree is used as the starting node.</p>
1318
- </div>
1319
- <div class="tsd-comment tsd-typography"></div></li>
1320
- <li>
1321
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
1322
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
1323
- </div>
1324
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1325
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree nodes.</p>
1326
-
1327
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1328
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#levelIterative">levelIterative</a></p>
1329
- <ul>
1330
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1154">src/data-structures/binary-tree/abstract-binary-tree.ts:1154</a></li></ul></aside></li></ul></section>
1331
- <section class="tsd-panel tsd-member"><a id="listLevels" class="tsd-anchor"></a>
1332
- <h3 class="tsd-anchor-link"><span>list<wbr/>Levels</span><a href="#listLevels" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1333
- <ul class="tsd-signatures">
1334
- <li class="tsd-signature tsd-anchor-link" id="listLevels.listLevels-1"><span class="tsd-kind-call-signature">list<wbr/>Levels</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span><a href="#listLevels.listLevels-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1335
- <li class="tsd-description">
1336
- <div class="tsd-comment tsd-typography"><p>Collects nodes from a binary tree by a specified property and organizes them into levels.</p>
1337
- </div>
1338
- <div class="tsd-parameters">
1339
- <h4 class="tsd-parameters-title">Parameters</h4>
1340
- <ul class="tsd-parameter-list">
1341
- <li>
1342
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1343
- <div class="tsd-comment tsd-typography"><p>The root node of the binary tree or null. If null, the function will use the root node of the current binary tree instance.</p>
1344
- </div>
1345
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1346
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></h4><p>A 2D array of AbstractBinaryTreeNodeProperty<N> objects.</p>
1347
-
1348
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1349
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#listLevels">listLevels</a></p>
1350
- <ul>
1351
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1197">src/data-structures/binary-tree/abstract-binary-tree.ts:1197</a></li></ul></aside></li>
1352
- <li class="tsd-signature tsd-anchor-link" id="listLevels.listLevels-2"><span class="tsd-kind-call-signature">list<wbr/>Levels</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span><a href="#listLevels.listLevels-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1353
- <li class="tsd-description">
1354
- <div class="tsd-comment tsd-typography"><p>Collects nodes from a binary tree by a specified property and organizes them into levels.</p>
1355
- </div>
1356
- <div class="tsd-parameters">
1357
- <h4 class="tsd-parameters-title">Parameters</h4>
1358
- <ul class="tsd-parameter-list">
1359
- <li>
1360
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1361
- <div class="tsd-comment tsd-typography"><p>The root node of the binary tree or null. If null, the function will use the root node of the current binary tree instance.</p>
1362
- </div>
1363
- <div class="tsd-comment tsd-typography"></div></li>
1364
- <li>
1365
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5></li></ul></div>
1366
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></h4>
1367
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1368
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#listLevels">listLevels</a></p>
1369
- <ul>
1370
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1205">src/data-structures/binary-tree/abstract-binary-tree.ts:1205</a></li></ul></aside></li>
1371
- <li class="tsd-signature tsd-anchor-link" id="listLevels.listLevels-3"><span class="tsd-kind-call-signature">list<wbr/>Levels</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span><a href="#listLevels.listLevels-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1372
- <li class="tsd-description">
1373
- <div class="tsd-comment tsd-typography"><p>Collects nodes from a binary tree by a specified property and organizes them into levels.</p>
1374
- </div>
1375
- <div class="tsd-parameters">
1376
- <h4 class="tsd-parameters-title">Parameters</h4>
1377
- <ul class="tsd-parameter-list">
1378
- <li>
1379
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1380
- <div class="tsd-comment tsd-typography"><p>The root node of the binary tree or null. If null, the function will use the root node of the current binary tree instance.</p>
1381
- </div>
1382
- <div class="tsd-comment tsd-typography"></div></li>
1383
- <li>
1384
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
1385
- <div class="tsd-comment tsd-typography"><p>The property of the BinaryTreeNode object to collect at each level.</p>
1386
- </div>
1387
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1388
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;val&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></h4><p>A 2D array of &#39;val&#39; properties from each node.</p>
1389
-
1390
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1391
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#listLevels">listLevels</a></p>
1392
- <ul>
1393
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1213">src/data-structures/binary-tree/abstract-binary-tree.ts:1213</a></li></ul></aside></li>
1394
- <li class="tsd-signature tsd-anchor-link" id="listLevels.listLevels-4"><span class="tsd-kind-call-signature">list<wbr/>Levels</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">node</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span><a href="#listLevels.listLevels-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1395
- <li class="tsd-description">
1396
- <div class="tsd-comment tsd-typography"><p>Collects nodes from a binary tree by a specified property and organizes them into levels.</p>
1397
- </div>
1398
- <div class="tsd-parameters">
1399
- <h4 class="tsd-parameters-title">Parameters</h4>
1400
- <ul class="tsd-parameter-list">
1401
- <li>
1402
- <h5><span class="tsd-kind-parameter">node</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1403
- <div class="tsd-comment tsd-typography"><p>The root node of the binary tree or null. If null, the function will use the root node of the current binary tree instance.</p>
1404
- </div>
1405
- <div class="tsd-comment tsd-typography"></div></li>
1406
- <li>
1407
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
1408
- <div class="tsd-comment tsd-typography"><p>The property of the BinaryTreeNode object to collect at each level.</p>
1409
- </div>
1410
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1411
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></h4><p>A 2D array of binary tree nodes.</p>
1412
-
1413
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1414
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#listLevels">listLevels</a></p>
1415
- <ul>
1416
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1221">src/data-structures/binary-tree/abstract-binary-tree.ts:1221</a></li></ul></aside></li></ul></section>
1417
- <section class="tsd-panel tsd-member"><a id="morris" class="tsd-anchor"></a>
1418
- <h3 class="tsd-anchor-link"><span>morris</span><a href="#morris" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1419
- <ul class="tsd-signatures">
1420
- <li class="tsd-signature tsd-anchor-link" id="morris.morris-1"><span class="tsd-kind-call-signature">morris</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#morris.morris-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1421
- <li class="tsd-description">
1422
- <div class="tsd-comment tsd-typography"><p>Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm.</p>
1423
- </div>
1424
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree node IDs.</p>
1425
-
1426
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1427
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#morris">morris</a></p>
1428
- <ul>
1429
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1307">src/data-structures/binary-tree/abstract-binary-tree.ts:1307</a></li></ul></aside></li>
1430
- <li class="tsd-signature tsd-anchor-link" id="morris.morris-2"><span class="tsd-kind-call-signature">morris</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><a href="#morris.morris-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1431
- <li class="tsd-description">
1432
- <div class="tsd-comment tsd-typography"><p>Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates properties of each node based on the specified property name.</p>
1433
- </div>
1434
- <div class="tsd-parameters">
1435
- <h4 class="tsd-parameters-title">Parameters</h4>
1436
- <ul class="tsd-parameter-list">
1437
- <li>
1438
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
1439
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
1440
- </div>
1441
- <div class="tsd-comment tsd-typography"></div></li>
1442
- <li>
1443
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;id&quot;</span></h5>
1444
- <div class="tsd-comment tsd-typography"><p>The name of the property to accumulate.</p>
1445
- </div>
1446
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1447
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of values corresponding to the specified property.</p>
1448
-
1449
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1450
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#morris">morris</a></p>
1451
- <ul>
1452
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1315">src/data-structures/binary-tree/abstract-binary-tree.ts:1315</a></li></ul></aside></li>
1453
- <li class="tsd-signature tsd-anchor-link" id="morris.morris-3"><span class="tsd-kind-call-signature">morris</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#morris.morris-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1454
- <li class="tsd-description">
1455
- <div class="tsd-comment tsd-typography"><p>Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the &#39;val&#39; property of each node.</p>
1456
- </div>
1457
- <div class="tsd-parameters">
1458
- <h4 class="tsd-parameters-title">Parameters</h4>
1459
- <ul class="tsd-parameter-list">
1460
- <li>
1461
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
1462
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
1463
- </div>
1464
- <div class="tsd-comment tsd-typography"></div></li>
1465
- <li>
1466
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;val&quot;</span></h5>
1467
- <div class="tsd-comment tsd-typography"><p>The property of the BinaryTreeNode object to collect at each level.</p>
1468
- </div>
1469
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1470
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of &#39;val&#39; properties from each node.</p>
1471
-
1472
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1473
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#morris">morris</a></p>
1474
- <ul>
1475
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1323">src/data-structures/binary-tree/abstract-binary-tree.ts:1323</a></li></ul></aside></li>
1476
- <li class="tsd-signature tsd-anchor-link" id="morris.morris-4"><span class="tsd-kind-call-signature">morris</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pattern</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">nodeOrPropertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span><a href="#morris.morris-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1477
- <li class="tsd-description">
1478
- <div class="tsd-comment tsd-typography"><p>Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.</p>
1479
- </div>
1480
- <div class="tsd-parameters">
1481
- <h4 class="tsd-parameters-title">Parameters</h4>
1482
- <ul class="tsd-parameter-list">
1483
- <li>
1484
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">pattern</span>: <a href="../types/DFSOrderPattern.html" class="tsd-signature-type tsd-kind-type-alias">DFSOrderPattern</a></h5>
1485
- <div class="tsd-comment tsd-typography"><p>The traversal pattern: &#39;in&#39; (in-order), &#39;pre&#39; (pre-order), or &#39;post&#39; (post-order).</p>
1486
- </div>
1487
- <div class="tsd-comment tsd-typography"></div></li>
1488
- <li>
1489
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">nodeOrPropertyName</span>: <span class="tsd-signature-type">&quot;node&quot;</span></h5>
1490
- <div class="tsd-comment tsd-typography"><p>The property of the BinaryTreeNode object to collect at each level.</p>
1491
- </div>
1492
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1493
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">[]</span></h4><p>An array of binary tree nodes.</p>
1494
-
1495
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1496
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#morris">morris</a></p>
1497
- <ul>
1498
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L1331">src/data-structures/binary-tree/abstract-binary-tree.ts:1331</a></li></ul></aside></li></ul></section>
1499
- <section class="tsd-panel tsd-member"><a id="remove" class="tsd-anchor"></a>
1500
- <h3 class="tsd-anchor-link"><span>remove</span><a href="#remove" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1501
- <ul class="tsd-signatures">
1502
- <li class="tsd-signature tsd-anchor-link" id="remove.remove-1"><span class="tsd-kind-call-signature">remove</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">nodeOrId</span>, <span class="tsd-kind-parameter">isUpdateAllLeftSum</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/BinaryTreeDeletedResult.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeDeletedResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><a href="#remove.remove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1503
- <li class="tsd-description">
1504
- <div class="tsd-comment tsd-typography"><p>The <code>remove</code> function removes a node from a binary search tree and returns the deleted node along with the parent node
1505
- that needs to be balanced.</p>
1506
- </div>
1507
- <div class="tsd-parameters">
1508
- <h4 class="tsd-parameters-title">Parameters</h4>
1509
- <ul class="tsd-parameter-list">
1510
- <li>
1511
- <h5><span class="tsd-kind-parameter">nodeOrId</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1512
- <div class="tsd-comment tsd-typography"><p>The <code>nodeOrId</code> parameter can be either a node object (<code>N</code>) or a binary tree
1513
- node ID (<code>BinaryTreeNodeId</code>).</p>
1514
- </div>
1515
- <div class="tsd-comment tsd-typography"></div></li>
1516
- <li>
1517
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">isUpdateAllLeftSum</span>: <span class="tsd-signature-type">boolean</span></h5>
1518
- <div class="tsd-comment tsd-typography"><p>The <code>isUpdateAllLeftSum</code> parameter is an optional boolean parameter that
1519
- determines whether to update the left sum of all nodes in the binary tree after removing a node. If
1520
- <code>isUpdateAllLeftSum</code> is set to <code>true</code>, the left sum of all nodes will be updated. If it</p>
1521
- </div>
1522
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1523
- <h4 class="tsd-returns-title">Returns <a href="../types/BinaryTreeDeletedResult.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeDeletedResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></h4><p>The function <code>remove</code> returns an array of <code>BinaryTreeDeletedResult&lt;N&gt;</code> objects.</p>
1524
-
1525
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1526
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#remove">remove</a></p>
1527
- <ul>
1528
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L360">src/data-structures/binary-tree/abstract-binary-tree.ts:360</a></li></ul></aside></li></ul></section>
1529
- <section class="tsd-panel tsd-member"><a id="subTreeAdd" class="tsd-anchor"></a>
1530
- <h3 class="tsd-anchor-link"><span>sub<wbr/>Tree<wbr/>Add</span><a href="#subTreeAdd" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1531
- <ul class="tsd-signatures">
1532
- <li class="tsd-signature tsd-anchor-link" id="subTreeAdd.subTreeAdd-1"><span class="tsd-kind-call-signature">sub<wbr/>Tree<wbr/>Add</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">subTreeRoot</span>, <span class="tsd-kind-parameter">delta</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#subTreeAdd.subTreeAdd-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1533
- <li class="tsd-description">
1534
- <div class="tsd-comment tsd-typography"><p>The function <code>subTreeAdd</code> adds a delta value to a specified property of each node in a subtree.</p>
1535
- </div>
1536
- <div class="tsd-parameters">
1537
- <h4 class="tsd-parameters-title">Parameters</h4>
1538
- <ul class="tsd-parameter-list">
1539
- <li>
1540
- <h5><span class="tsd-kind-parameter">subTreeRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1541
- <div class="tsd-comment tsd-typography"><p>The <code>subTreeRoot</code> parameter represents the root node of a binary
1542
- tree or the ID of a node in the binary tree. It can also be <code>null</code> if there is no subtree to add to.</p>
1543
- </div>
1544
- <div class="tsd-comment tsd-typography"></div></li>
1545
- <li>
1546
- <h5><span class="tsd-kind-parameter">delta</span>: <span class="tsd-signature-type">number</span></h5>
1547
- <div class="tsd-comment tsd-typography"><p>The <code>delta</code> parameter is a number that represents the amount by which the property value of
1548
- each node in the subtree should be incremented.</p>
1549
- </div>
1550
- <div class="tsd-comment tsd-typography"></div></li>
1551
- <li>
1552
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
1553
- <div class="tsd-comment tsd-typography"><p>The <code>propertyName</code> parameter is an optional parameter that
1554
- specifies the property of the binary tree node that should be modified. If not provided, it defaults to &#39;id&#39;.</p>
1555
- </div>
1556
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1557
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>a boolean value.</p>
1558
-
1559
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1560
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#subTreeAdd">subTreeAdd</a></p>
1561
- <ul>
1562
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L882">src/data-structures/binary-tree/abstract-binary-tree.ts:882</a></li></ul></aside></li></ul></section>
1563
- <section class="tsd-panel tsd-member"><a id="subTreeSum" class="tsd-anchor"></a>
1564
- <h3 class="tsd-anchor-link"><span>sub<wbr/>Tree<wbr/>Sum</span><a href="#subTreeSum" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1565
- <ul class="tsd-signatures">
1566
- <li class="tsd-signature tsd-anchor-link" id="subTreeSum.subTreeSum-1"><span class="tsd-kind-call-signature">sub<wbr/>Tree<wbr/>Sum</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">subTreeRoot</span>, <span class="tsd-kind-parameter">propertyName</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#subTreeSum.subTreeSum-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1567
- <li class="tsd-description">
1568
- <div class="tsd-comment tsd-typography"><p>The function <code>subTreeSum</code> calculates the sum of a specified property in a binary tree or subtree.</p>
1569
- </div>
1570
- <div class="tsd-parameters">
1571
- <h4 class="tsd-parameters-title">Parameters</h4>
1572
- <ul class="tsd-parameter-list">
1573
- <li>
1574
- <h5><span class="tsd-kind-parameter">subTreeRoot</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1575
- <div class="tsd-comment tsd-typography"><p>The <code>subTreeRoot</code> parameter represents the root node of a binary
1576
- tree or the ID of a binary tree node. It can also be <code>null</code> if there is no subtree.</p>
1577
- </div>
1578
- <div class="tsd-comment tsd-typography"></div></li>
1579
- <li>
1580
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">propertyName</span>: <a href="../types/BinaryTreeNodePropertyName.html" class="tsd-signature-type tsd-kind-type-alias">BinaryTreeNodePropertyName</a></h5>
1581
- <div class="tsd-comment tsd-typography"><p>propertyName is an optional parameter that specifies the
1582
- property of the binary tree node to use for calculating the sum. It can be either &#39;id&#39; or &#39;val&#39;. If propertyName is
1583
- not provided, it defaults to &#39;id&#39;.</p>
1584
- </div>
1585
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1586
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>a number, which is the sum of the values of the specified property in the subtree rooted at <code>subTreeRoot</code>.</p>
1587
-
1588
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1589
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#subTreeSum">subTreeSum</a></p>
1590
- <ul>
1591
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L826">src/data-structures/binary-tree/abstract-binary-tree.ts:826</a></li></ul></aside></li></ul></section>
1592
- <section class="tsd-panel tsd-member"><a id="swapLocation" class="tsd-anchor"></a>
1593
- <h3 class="tsd-anchor-link"><span>swap<wbr/>Location</span><a href="#swapLocation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
1594
- <ul class="tsd-signatures">
1595
- <li class="tsd-signature tsd-anchor-link" id="swapLocation.swapLocation-1"><span class="tsd-kind-call-signature">swap<wbr/>Location</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">srcNode</span>, <span class="tsd-kind-parameter">destNode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type tsd-kind-type-parameter">N</span><a href="#swapLocation.swapLocation-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
1596
- <li class="tsd-description">
1597
- <div class="tsd-comment tsd-typography"><p>The <code>swapLocation</code> function swaps the location of two nodes in a binary tree.</p>
1598
- </div>
1599
- <div class="tsd-parameters">
1600
- <h4 class="tsd-parameters-title">Parameters</h4>
1601
- <ul class="tsd-parameter-list">
1602
- <li>
1603
- <h5><span class="tsd-kind-parameter">srcNode</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1604
- <div class="tsd-comment tsd-typography"><p>The source node that you want to swap with the destination node.</p>
1605
- </div>
1606
- <div class="tsd-comment tsd-typography"></div></li>
1607
- <li>
1608
- <h5><span class="tsd-kind-parameter">destNode</span>: <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h5>
1609
- <div class="tsd-comment tsd-typography"><p>The <code>destNode</code> parameter represents the destination node where the values from <code>srcNode</code> will
1610
- be swapped to.</p>
1611
- </div>
1612
- <div class="tsd-comment tsd-typography"></div></li></ul></div>
1613
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type tsd-kind-type-parameter">N</span></h4><p>The <code>destNode</code> is being returned.</p>
1614
-
1615
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
1616
- <p>Implementation of <a href="../interfaces/IAbstractBinaryTree.html">IAbstractBinaryTree</a>.<a href="../interfaces/IAbstractBinaryTree.html#swapLocation">swapLocation</a></p>
1617
- <ul>
1618
- <li>Defined in <a href="https://github.com/zrwusa/data-structure-typed/blob/9b5f2b2/src/data-structures/binary-tree/abstract-binary-tree.ts#L205">src/data-structures/binary-tree/abstract-binary-tree.ts:205</a></li></ul></aside></li></ul></section></section></div>
1619
- <div class="col-sidebar">
1620
- <div class="page-menu">
1621
- <div class="tsd-navigation settings">
1622
- <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
1623
- <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
1624
- <div class="tsd-accordion-details">
1625
- <div class="tsd-filter-visibility">
1626
- <h4 class="uppercase">Member Visibility</h4><form>
1627
- <ul id="tsd-filter-options">
1628
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
1629
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
1630
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
1631
- <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
1632
- <div class="tsd-theme-toggle">
1633
- <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
1634
- <details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
1635
- <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
1636
- <div class="tsd-accordion-details">
1637
- <ul>
1638
- <li><a href="#constructor" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li>
1639
- <li><a href="#_loopType" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_loop<wbr/>Type</span></a></li>
1640
- <li><a href="#_root" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_root</span></a></li>
1641
- <li><a href="#_size" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_size</span></a></li>
1642
- <li><a href="#_visitedId" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Id</span></a></li>
1643
- <li><a href="#_visitedLeftSum" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Left<wbr/>Sum</span></a></li>
1644
- <li><a href="#_visitedNode" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Node</span></a></li>
1645
- <li><a href="#_visitedVal" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>_visited<wbr/>Val</span></a></li>
1646
- <li><a href="#loopType" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>loop<wbr/>Type</span></a></li>
1647
- <li><a href="#root" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>root</span></a></li>
1648
- <li><a href="#size" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>size</span></a></li>
1649
- <li><a href="#visitedId" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Id</span></a></li>
1650
- <li><a href="#visitedLeftSum" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Left<wbr/>Sum</span></a></li>
1651
- <li><a href="#visitedNode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Node</span></a></li>
1652
- <li><a href="#visitedVal" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-262144"></use></svg><span>visited<wbr/>Val</span></a></li>
1653
- <li><a href="#BFS" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>BFS</span></a></li>
1654
- <li><a href="#DFS" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>DFS</span></a></li>
1655
- <li><a href="#DFSIterative" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>DFSIterative</span></a></li>
1656
- <li><a href="#_accumulatedByPropertyName" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_accumulated<wbr/>By<wbr/>Property<wbr/>Name</span></a></li>
1657
- <li><a href="#_addTo" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_add<wbr/>To</span></a></li>
1658
- <li><a href="#_clearResults" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_clear<wbr/>Results</span></a></li>
1659
- <li><a href="#_getResultByPropertyName" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_get<wbr/>Result<wbr/>By<wbr/>Property<wbr/>Name</span></a></li>
1660
- <li><a href="#_pushByPropertyNameStopOrNot" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_push<wbr/>By<wbr/>Property<wbr/>Name<wbr/>Stop<wbr/>Or<wbr/>Not</span></a></li>
1661
- <li><a href="#_setLoopType" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Loop<wbr/>Type</span></a></li>
1662
- <li><a href="#_setRoot" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Root</span></a></li>
1663
- <li><a href="#_setSize" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Size</span></a></li>
1664
- <li><a href="#_setVisitedId" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Id</span></a></li>
1665
- <li><a href="#_setVisitedLeftSum" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Left<wbr/>Sum</span></a></li>
1666
- <li><a href="#_setVisitedNode" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Node</span></a></li>
1667
- <li><a href="#_setVisitedVal" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>_set<wbr/>Visited<wbr/>Val</span></a></li>
1668
- <li><a href="#add" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add</span></a></li>
1669
- <li><a href="#addMany" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add<wbr/>Many</span></a></li>
1670
- <li><a href="#clear" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>clear</span></a></li>
1671
- <li><a href="#createNode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Node</span></a></li>
1672
- <li><a href="#fill" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>fill</span></a></li>
1673
- <li><a href="#get" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get</span></a></li>
1674
- <li><a href="#getDepth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Depth</span></a></li>
1675
- <li><a href="#getHeight" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Height</span></a></li>
1676
- <li><a href="#getLeftMost" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Left<wbr/>Most</span></a></li>
1677
- <li><a href="#getMinHeight" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Min<wbr/>Height</span></a></li>
1678
- <li><a href="#getNodes" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Nodes</span></a></li>
1679
- <li><a href="#getPathToRoot" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Path<wbr/>To<wbr/>Root</span></a></li>
1680
- <li><a href="#getPredecessor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Predecessor</span></a></li>
1681
- <li><a href="#getRightMost" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Right<wbr/>Most</span></a></li>
1682
- <li><a href="#getSubTreeSize" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Sub<wbr/>Tree<wbr/>Size</span></a></li>
1683
- <li><a href="#has" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>has</span></a></li>
1684
- <li><a href="#isBST" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>isBST</span></a></li>
1685
- <li><a href="#isEmpty" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Empty</span></a></li>
1686
- <li><a href="#isPerfectlyBalanced" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>Perfectly<wbr/>Balanced</span></a></li>
1687
- <li><a href="#isSubtreeBST" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>is<wbr/>SubtreeBST</span></a></li>
1688
- <li><a href="#levelIterative" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>level<wbr/>Iterative</span></a></li>
1689
- <li><a href="#listLevels" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>list<wbr/>Levels</span></a></li>
1690
- <li><a href="#morris" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>morris</span></a></li>
1691
- <li><a href="#remove" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>remove</span></a></li>
1692
- <li><a href="#subTreeAdd" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>sub<wbr/>Tree<wbr/>Add</span></a></li>
1693
- <li><a href="#subTreeSum" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>sub<wbr/>Tree<wbr/>Sum</span></a></li>
1694
- <li><a href="#swapLocation" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>swap<wbr/>Location</span></a></li></ul></div></details></div>
1695
- <div class="site-menu">
1696
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>data-<wbr/>structure-<wbr/>typed</span></a>
1697
- <ul class="tsd-small-nested-navigation">
1698
- <li><a href="../enums/CP.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g></svg><span>CP</span></a></li>
1699
- <li><a href="../enums/FamilyPosition.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Family<wbr/>Position</span></a></li>
1700
- <li><a href="../enums/LoopType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Loop<wbr/>Type</span></a></li>
1701
- <li><a href="../enums/RBColor.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>RBColor</span></a></li>
1702
- <li><a href="../enums/TopologicalProperty.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Topological<wbr/>Property</span></a></li>
1703
- <li><a href="AVLTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>AVLTree</span></a></li>
1704
- <li><a href="AVLTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>AVLTree<wbr/>Node</span></a></li>
1705
- <li><a href="AaTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Aa<wbr/>Tree</span></a></li>
1706
- <li><a href="AbstractBinaryTree.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree</span></a></li>
1707
- <li><a href="AbstractBinaryTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree<wbr/>Node</span></a></li>
1708
- <li><a href="AbstractEdge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Abstract<wbr/>Edge</span></a></li>
1709
- <li><a href="AbstractGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Abstract<wbr/>Graph</span></a></li>
1710
- <li><a href="AbstractVertex.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Abstract<wbr/>Vertex</span></a></li>
1711
- <li><a href="ArrayDeque.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Array<wbr/>Deque</span></a></li>
1712
- <li><a href="BST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>BST</span></a></li>
1713
- <li><a href="BSTNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>BSTNode</span></a></li>
1714
- <li><a href="BTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>BTree</span></a></li>
1715
- <li><a href="BinaryIndexedTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Binary<wbr/>Indexed<wbr/>Tree</span></a></li>
1716
- <li><a href="BinaryTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Binary<wbr/>Tree</span></a></li>
1717
- <li><a href="BinaryTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Binary<wbr/>Tree<wbr/>Node</span></a></li>
1718
- <li><a href="Character.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Character</span></a></li>
1719
- <li><a href="CoordinateMap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Coordinate<wbr/>Map</span></a></li>
1720
- <li><a href="CoordinateSet.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Coordinate<wbr/>Set</span></a></li>
1721
- <li><a href="Deque.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Deque</span></a></li>
1722
- <li><a href="DirectedEdge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Directed<wbr/>Edge</span></a></li>
1723
- <li><a href="DirectedGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Directed<wbr/>Graph</span></a></li>
1724
- <li><a href="DirectedVertex.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Directed<wbr/>Vertex</span></a></li>
1725
- <li><a href="DoublyLinkedList.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Doubly<wbr/>Linked<wbr/>List</span></a></li>
1726
- <li><a href="DoublyLinkedListNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Doubly<wbr/>Linked<wbr/>List<wbr/>Node</span></a></li>
1727
- <li><a href="HashTable.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Hash<wbr/>Table</span></a></li>
1728
- <li><a href="Heap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Heap</span></a></li>
1729
- <li><a href="HeapItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Heap<wbr/>Item</span></a></li>
1730
- <li><a href="LinkedListQueue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Linked<wbr/>List<wbr/>Queue</span></a></li>
1731
- <li><a href="MapEdge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Map<wbr/>Edge</span></a></li>
1732
- <li><a href="MapGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Map<wbr/>Graph</span></a></li>
1733
- <li><a href="MapVertex.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Map<wbr/>Vertex</span></a></li>
1734
- <li><a href="Matrix2D.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Matrix2D</span></a></li>
1735
- <li><a href="MatrixNTI2D.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>MatrixNTI2D</span></a></li>
1736
- <li><a href="MaxHeap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Max<wbr/>Heap</span></a></li>
1737
- <li><a href="MaxPriorityQueue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Max<wbr/>Priority<wbr/>Queue</span></a></li>
1738
- <li><a href="MinHeap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Min<wbr/>Heap</span></a></li>
1739
- <li><a href="MinPriorityQueue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Min<wbr/>Priority<wbr/>Queue</span></a></li>
1740
- <li><a href="Navigator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Navigator</span></a></li>
1741
- <li><a href="ObjectDeque.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Object<wbr/>Deque</span></a></li>
1742
- <li><a href="Pair.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Pair</span></a></li>
1743
- <li><a href="PriorityQueue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Priority<wbr/>Queue</span></a></li>
1744
- <li><a href="Queue.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Queue</span></a></li>
1745
- <li><a href="RBTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>RBTree</span></a></li>
1746
- <li><a href="RBTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>RBTree<wbr/>Node</span></a></li>
1747
- <li><a href="SegmentTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Segment<wbr/>Tree</span></a></li>
1748
- <li><a href="SegmentTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Segment<wbr/>Tree<wbr/>Node</span></a></li>
1749
- <li><a href="SinglyLinkedList.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Singly<wbr/>Linked<wbr/>List</span></a></li>
1750
- <li><a href="SinglyLinkedListNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Singly<wbr/>Linked<wbr/>List<wbr/>Node</span></a></li>
1751
- <li><a href="SkipLinkedList.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Skip<wbr/>Linked<wbr/>List</span></a></li>
1752
- <li><a href="SplayTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Splay<wbr/>Tree</span></a></li>
1753
- <li><a href="Stack.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Stack</span></a></li>
1754
- <li><a href="TreeMap.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tree<wbr/>Map</span></a></li>
1755
- <li><a href="TreeMultiset.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tree<wbr/>Multiset</span></a></li>
1756
- <li><a href="TreeMultisetNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tree<wbr/>Multiset<wbr/>Node</span></a></li>
1757
- <li><a href="TreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tree<wbr/>Node</span></a></li>
1758
- <li><a href="TreeSet.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Tree<wbr/>Set</span></a></li>
1759
- <li><a href="Trie.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Trie</span></a></li>
1760
- <li><a href="TrieNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Trie<wbr/>Node</span></a></li>
1761
- <li><a href="TwoThreeTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Two<wbr/>Three<wbr/>Tree</span></a></li>
1762
- <li><a href="UndirectedEdge.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Undirected<wbr/>Edge</span></a></li>
1763
- <li><a href="UndirectedGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Undirected<wbr/>Graph</span></a></li>
1764
- <li><a href="UndirectedVertex.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Undirected<wbr/>Vertex</span></a></li>
1765
- <li><a href="Vector2D.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg><span>Vector2D</span></a></li>
1766
- <li><a href="../interfaces/IAVLTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg><span>IAVLTree</span></a></li>
1767
- <li><a href="../interfaces/IAbstractBinaryTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IAbstract<wbr/>Binary<wbr/>Tree</span></a></li>
1768
- <li><a href="../interfaces/IAbstractBinaryTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IAbstract<wbr/>Binary<wbr/>Tree<wbr/>Node</span></a></li>
1769
- <li><a href="../interfaces/IAbstractGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IAbstract<wbr/>Graph</span></a></li>
1770
- <li><a href="../interfaces/IBST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IBST</span></a></li>
1771
- <li><a href="../interfaces/IDirectedGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IDirected<wbr/>Graph</span></a></li>
1772
- <li><a href="../interfaces/IRBTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IRBTree</span></a></li>
1773
- <li><a href="../interfaces/IUNDirectedGraph.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>IUNDirected<wbr/>Graph</span></a></li>
1774
- <li><a href="../types/AVLTreeNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>AVLTree<wbr/>Node<wbr/>Nested</span></a></li>
1775
- <li><a href="../types/AVLTreeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>AVLTree<wbr/>Options</span></a></li>
1776
- <li><a href="../types/AbstractBinaryTreeNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree<wbr/>Node<wbr/>Nested</span></a></li>
1777
- <li><a href="../types/AbstractBinaryTreeNodeProperties.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree<wbr/>Node<wbr/>Properties</span></a></li>
1778
- <li><a href="../types/AbstractBinaryTreeNodeProperty.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree<wbr/>Node<wbr/>Property</span></a></li>
1779
- <li><a href="../types/AbstractBinaryTreeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Abstract<wbr/>Binary<wbr/>Tree<wbr/>Options</span></a></li>
1780
- <li><a href="../types/BSTComparator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>BSTComparator</span></a></li>
1781
- <li><a href="../types/BSTNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>BSTNode<wbr/>Nested</span></a></li>
1782
- <li><a href="../types/BSTOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>BSTOptions</span></a></li>
1783
- <li><a href="../types/BinaryTreeDeletedResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Binary<wbr/>Tree<wbr/>Deleted<wbr/>Result</span></a></li>
1784
- <li><a href="../types/BinaryTreeNodeId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Binary<wbr/>Tree<wbr/>Node<wbr/>Id</span></a></li>
1785
- <li><a href="../types/BinaryTreeNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Binary<wbr/>Tree<wbr/>Node<wbr/>Nested</span></a></li>
1786
- <li><a href="../types/BinaryTreeNodePropertyName.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Binary<wbr/>Tree<wbr/>Node<wbr/>Property<wbr/>Name</span></a></li>
1787
- <li><a href="../types/BinaryTreeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Binary<wbr/>Tree<wbr/>Options</span></a></li>
1788
- <li><a href="../types/DFSOrderPattern.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>DFSOrder<wbr/>Pattern</span></a></li>
1789
- <li><a href="../types/DijkstraResult.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Dijkstra<wbr/>Result</span></a></li>
1790
- <li><a href="../types/Direction.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Direction</span></a></li>
1791
- <li><a href="../types/DummyAny.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Dummy<wbr/>Any</span></a></li>
1792
- <li><a href="../types/EdgeId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Edge<wbr/>Id</span></a></li>
1793
- <li><a href="../types/HeapOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Heap<wbr/>Options</span></a></li>
1794
- <li><a href="../types/IAVLTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IAVLTree<wbr/>Node</span></a></li>
1795
- <li><a href="../types/IBSTNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IBSTNode</span></a></li>
1796
- <li><a href="../types/IBinaryTree.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IBinary<wbr/>Tree</span></a></li>
1797
- <li><a href="../types/IBinaryTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IBinary<wbr/>Tree<wbr/>Node</span></a></li>
1798
- <li><a href="../types/IRBTreeNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>IRBTree<wbr/>Node</span></a></li>
1799
- <li><a href="../types/ITreeMultiset.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>ITree<wbr/>Multiset</span></a></li>
1800
- <li><a href="../types/ITreeMultisetNode.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>ITree<wbr/>Multiset<wbr/>Node</span></a></li>
1801
- <li><a href="../types/KeyValueObject.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Key<wbr/>Value<wbr/>Object</span></a></li>
1802
- <li><a href="../types/KeyValueObjectWithId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Key<wbr/>Value<wbr/>Object<wbr/>With<wbr/>Id</span></a></li>
1803
- <li><a href="../types/MapGraphCoordinate.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Map<wbr/>Graph<wbr/>Coordinate</span></a></li>
1804
- <li><a href="../types/NavigatorParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Navigator<wbr/>Params</span></a></li>
1805
- <li><a href="../types/NodeOrPropertyName.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Node<wbr/>Or<wbr/>Property<wbr/>Name</span></a></li>
1806
- <li><a href="../types/NonNumberNonObjectButDefined.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Non<wbr/>Number<wbr/>Non<wbr/>Object<wbr/>But<wbr/>Defined</span></a></li>
1807
- <li><a href="../types/ObjectWithNonNumberId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Object<wbr/>With<wbr/>Non<wbr/>Number<wbr/>Id</span></a></li>
1808
- <li><a href="../types/ObjectWithNumberId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Object<wbr/>With<wbr/>Number<wbr/>Id</span></a></li>
1809
- <li><a href="../types/ObjectWithoutId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Object<wbr/>Without<wbr/>Id</span></a></li>
1810
- <li><a href="../types/PriorityQueueComparator.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Priority<wbr/>Queue<wbr/>Comparator</span></a></li>
1811
- <li><a href="../types/PriorityQueueDFSOrderPattern.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Priority<wbr/>QueueDFSOrder<wbr/>Pattern</span></a></li>
1812
- <li><a href="../types/PriorityQueueOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Priority<wbr/>Queue<wbr/>Options</span></a></li>
1813
- <li><a href="../types/RBTreeNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>RBTree<wbr/>Node<wbr/>Nested</span></a></li>
1814
- <li><a href="../types/RBTreeOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>RBTree<wbr/>Options</span></a></li>
1815
- <li><a href="../types/RestrictValById.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Restrict<wbr/>Val<wbr/>By<wbr/>Id</span></a></li>
1816
- <li><a href="../types/SegmentTreeNodeVal.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Segment<wbr/>Tree<wbr/>Node<wbr/>Val</span></a></li>
1817
- <li><a href="../types/SpecifyOptional.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Specify<wbr/>Optional</span></a></li>
1818
- <li><a href="../types/Thunk.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Thunk</span></a></li>
1819
- <li><a href="../types/ToThunkFn.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>To<wbr/>Thunk<wbr/>Fn</span></a></li>
1820
- <li><a href="../types/TopologicalStatus.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Topological<wbr/>Status</span></a></li>
1821
- <li><a href="../types/TreeMultisetNodeNested.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Tree<wbr/>Multiset<wbr/>Node<wbr/>Nested</span></a></li>
1822
- <li><a href="../types/TreeMultisetOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Tree<wbr/>Multiset<wbr/>Options</span></a></li>
1823
- <li><a href="../types/TrlAsyncFn.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Trl<wbr/>Async<wbr/>Fn</span></a></li>
1824
- <li><a href="../types/TrlFn.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Trl<wbr/>Fn</span></a></li>
1825
- <li><a href="../types/Turning.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Turning</span></a></li>
1826
- <li><a href="../types/VertexId.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Vertex<wbr/>Id</span></a></li>
1827
- <li><a href="../variables/THUNK_SYMBOL.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g></svg><span>THUNK_<wbr/>SYMBOL</span></a></li>
1828
- <li><a href="../functions/arrayRemove.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>array<wbr/>Remove</span></a></li>
1829
- <li><a href="../functions/isThunk.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>is<wbr/>Thunk</span></a></li>
1830
- <li><a href="../functions/toThunk.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>to<wbr/>Thunk</span></a></li>
1831
- <li><a href="../functions/trampoline.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>trampoline</span></a></li>
1832
- <li><a href="../functions/trampolineAsync.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>trampoline<wbr/>Async</span></a></li>
1833
- <li><a href="../functions/uuidV4.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>uuid<wbr/>V4</span></a></li></ul></nav></div></div></div>
1834
- <div class="tsd-generator">
1835
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
1836
- <div class="overlay"></div></body></html>