diff --git a/.npmignore b/.npmignore index e045d903..95472a30 100644 --- a/.npmignore +++ b/.npmignore @@ -1,7 +1,8 @@ .editorconfig .dependency-cruiser.js -package-lock.json -rename-clear-files.sh +.auto-changelog-template.hbs +rename_clear_files.sh +tsconfig.build.json /.idea /notes diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bdf58db..f4ef62d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. - [Semantic Versioning](https://semver.org/spec/v2.0.0.html) - [`auto-changelog`](https://github.com/CookPete/auto-changelog) -## [v1.32.0](https://github.com/zrwusa/data-structure-typed/compare/v1.12.9...main) (upcoming) +## [v1.32.1](https://github.com/zrwusa/data-structure-typed/compare/v1.12.9...main) (upcoming) ## [v1.12.9](https://github.com/zrwusa/data-structure-typed/compare/v1.12.8...v1.12.9) (14 August 2023) diff --git a/README.md b/README.md index cba3d062..3c2eab3c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Data Structure Typed + ![License](https://img.shields.io/badge/License-MIT-blue.svg) ![Language](https://img.shields.io/github/languages/top/zrwusa/data-structure-typed) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/zrwusa/data-structure-typed) @@ -19,7 +21,7 @@ DFS(Depth-First Search), DFSIterative, BFS(Breadth-First Search), morris, Bellman-Ford Algorithm, Dijkstra's Algorithm, Floyd-Warshall Algorithm, Tarjan's Algorithm. -## install +## Installation and Usage ### npm ```bash npm install data-structure-typed --save @@ -32,7 +34,7 @@ yarn add data-structure-typed ```html ``` -```javascript +```js const {AVLTree} = dataStructureTyped; const {Heap, MinHeap, SinglyLinkedList, Stack, AVLTreeNode, BST, Trie, DirectedGraph, DirectedVertex, TreeMultiset} = dataStructureTyped; ``` @@ -56,7 +58,7 @@ const {Heap, MinHeap, SinglyLinkedList, Stack, AVLTreeNode, BST, Trie, DirectedG ## Code Snippet ### Binary Search Tree (BST) snippet #### TS -```typescript +```ts import {BST, BSTNode} from 'data-structure-typed'; const bst = new BST(); @@ -91,7 +93,7 @@ const {Heap, MinHeap, SinglyLinkedList, Stack, AVLTreeNode, BST, Trie, DirectedG objBST.remove(11); ``` #### JS -```javascript +```js const {BST, BSTNode} = require('data-structure-typed'); const bst = new BST(); @@ -137,73 +139,71 @@ const {Heap, MinHeap, SinglyLinkedList, Stack, AVLTreeNode, BST, Trie, DirectedG ### AVLTree snippet #### TS -```typescript - import {AVLTree} from 'data-structure-typed'; - - const avlTree = new AVLTree(); - avlTree.addMany([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]) - avlTree.isAVLBalanced(); // true - avlTree.remove(10); - avlTree.isAVLBalanced(); // true - +```ts +import {AVLTree} from 'data-structure-typed'; + +const avlTree = new AVLTree(); +avlTree.addMany([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]) +avlTree.isAVLBalanced(); // true +avlTree.remove(10); +avlTree.isAVLBalanced(); // true ``` #### JS -```javascript - const {AVLTree} = require('data-structure-typed'); - - const avlTree = new AVLTree(); - avlTree.addMany([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]) - avlTree.isAVLBalanced(); // true - avlTree.remove(10); - avlTree.isAVLBalanced(); // true - +```js +const {AVLTree} = require('data-structure-typed'); + +const avlTree = new AVLTree(); +avlTree.addMany([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]) +avlTree.isAVLBalanced(); // true +avlTree.remove(10); +avlTree.isAVLBalanced(); // true ``` ### Directed Graph simple snippet #### TS or JS -```typescript +```ts import {DirectedGraph} from 'data-structure-typed'; - const graph = new DirectedGraph(); - - graph.addVertex('A'); - graph.addVertex('B'); - - graph.hasVertex('A'); // true - graph.hasVertex('B'); // true - graph.hasVertex('C'); // false - - graph.addEdge('A', 'B'); - graph.hasEdge('A', 'B'); // true - graph.hasEdge('B', 'A'); // false - - graph.removeEdgeSrcToDest('A', 'B'); - graph.hasEdge('A', 'B'); // false - - graph.addVertex('C'); - - graph.addEdge('A', 'B'); - graph.addEdge('B', 'C'); - - const topologicalOrderIds = graph.topologicalSort(); // ['A', 'B', 'C'] +const graph = new DirectedGraph(); + +graph.addVertex('A'); +graph.addVertex('B'); + +graph.hasVertex('A'); // true +graph.hasVertex('B'); // true +graph.hasVertex('C'); // false + +graph.addEdge('A', 'B'); +graph.hasEdge('A', 'B'); // true +graph.hasEdge('B', 'A'); // false + +graph.removeEdgeSrcToDest('A', 'B'); +graph.hasEdge('A', 'B'); // false + +graph.addVertex('C'); + +graph.addEdge('A', 'B'); +graph.addEdge('B', 'C'); + +const topologicalOrderIds = graph.topologicalSort(); // ['A', 'B', 'C'] ``` ### Undirected Graph snippet #### TS or JS -```typescript +```ts import {UndirectedGraph} from 'data-structure-typed'; - const graph = new UndirectedGraph(); - graph.addVertex('A'); - graph.addVertex('B'); - graph.addVertex('C'); - graph.addVertex('D'); - graph.removeVertex('C'); - graph.addEdge('A', 'B'); - graph.addEdge('B', 'D'); - - const dijkstraResult = graph.dijkstra('A'); - Array.from(dijkstraResult?.seen ?? []).map(vertex => vertex.id) // ['A', 'B', 'D'] +const graph = new UndirectedGraph(); +graph.addVertex('A'); +graph.addVertex('B'); +graph.addVertex('C'); +graph.addVertex('D'); +graph.removeVertex('C'); +graph.addEdge('A', 'B'); +graph.addEdge('B', 'D'); + +const dijkstraResult = graph.dijkstra('A'); +Array.from(dijkstraResult?.seen ?? []).map(vertex => vertex.id) // ['A', 'B', 'D'] ``` ## Data Structures @@ -760,8 +760,6 @@ By strictly adhering to object-oriented design (BinaryTree -> BST -> AVLTree -> -[//]: # (![overview diagram](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/assets/overview-diagram-of-data-structures.png?raw=true)) - ![complexities](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/assets/complexities-diff.jpg?raw=true) ![complexities of data structures](https://github.com/zrwusa/assets/blob/master/images/data-structure-typed/assets/data-structure-complexities.jpg?raw=true) diff --git a/docs/classes/AVLTree.html b/docs/classes/AVLTree.html index f6c6c4e4..0a0e8eb5 100644 --- a/docs/classes/AVLTree.html +++ b/docs/classes/AVLTree.html @@ -33,7 +33,7 @@

Implements

+
  • Defined in src/data-structures/binary-tree/avl-tree.ts:21
  • @@ -143,7 +143,7 @@

    Returns

    +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:28
  • Properties

    @@ -151,7 +151,7 @@
    +
  • Defined in src/data-structures/binary-tree/bst.ts:519
  • Accessors

    @@ -163,7 +163,7 @@

    Returns src/data-structures/binary-tree/abstract-binary-tree.ts:164

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:168
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:156
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:162
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:174
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:192
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:186
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:180
  • Methods

    @@ -239,7 +239,7 @@

    Returns numberImplementation of IAVLTree.BFS

    Inherited from BST.BFS

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:929
  • Performs a breadth-first search (BFS) on a binary tree, accumulating properties of each node based on the specified property name.

    @@ -258,7 +258,7 @@

    Returns numberImplementation of IAVLTree.BFS

    Inherited from BST.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:936
  • Performs a breadth-first search (BFS) on a binary tree, accumulating the 'val' property of each node.

    @@ -277,7 +277,7 @@

    Returns IAVLTree.BFS

    Inherited from BST.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:943
  • Performs a breadth-first search (BFS) on a binary tree, accumulating nodes themselves.

    @@ -296,7 +296,7 @@

    Returns IAVLTree.BFS

    Inherited from BST.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:950
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -334,7 +334,7 @@

    Returns numberImplementation of IAVLTree.DFS

    Inherited from BST.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:988
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -358,7 +358,7 @@

    Returns IAVLTree.DFS

    Inherited from BST.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:996
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -382,7 +382,7 @@

    Returns IAVLTree.DFS

    Inherited from BST.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1004
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -420,7 +420,7 @@

    Returns numberImplementation of IAVLTree.DFSIterative

    Inherited from BST.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1055
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -444,7 +444,7 @@

    Returns IAVLTree.DFSIterative

    Inherited from BST.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1063
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -468,7 +468,7 @@

    Returns IAVLTree.DFSIterative

    Inherited from BST.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1071
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1438
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:84
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:155
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:185
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:112
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:268
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:233
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:98
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:51
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:134
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:370
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:40
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:211
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -1205,7 +1205,7 @@

    Returns IAVLTree.getLeftMost

    Inherited from BST.getLeftMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:240
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1358,7 +1358,7 @@

    Returns IAVLTree.getRightMost

    Inherited from BST.getRightMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:475
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:223
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:293
  • 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.

    @@ -1591,7 +1591,7 @@

    Returns numberImplementation of IAVLTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1615,7 +1615,7 @@

    Returns IAVLTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1639,7 +1639,7 @@

    Returns IAVLTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1681,7 +1681,7 @@

    Returns numberImplementation of IAVLTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1705,7 +1705,7 @@

    Returns IAVLTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1729,7 +1729,7 @@

    Returns IAVLTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • 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.

    @@ -1767,7 +1767,7 @@

    Returns numberImplementation of IAVLTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -1791,7 +1791,7 @@

    Returns IAVLTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -1815,7 +1815,7 @@

    Returns IAVLTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:434
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:68
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:205
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:980
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -339,7 +339,7 @@

    Returns number

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:988
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -362,7 +362,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:996
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -385,7 +385,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1004
    • @@ -398,7 +398,7 @@

      Returns number

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1047
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -421,7 +421,7 @@

    Returns number

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1055
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -444,7 +444,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1063
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -467,7 +467,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1071
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1438
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
    • @@ -556,7 +556,7 @@

      Returns

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:255
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:314
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:196
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:599
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -970,7 +970,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:544
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1117,7 +1117,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • 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.

    @@ -1281,7 +1281,7 @@

    Returns number

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1304,7 +1304,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1327,7 +1327,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1367,7 +1367,7 @@

    Returns number

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1390,7 +1390,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1413,7 +1413,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • 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.

    @@ -1449,7 +1449,7 @@

    Returns number

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -1472,7 +1472,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -1495,7 +1495,7 @@

    Returns

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:360
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:205
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:56
  • Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:79
  • Methods

    @@ -173,7 +173,7 @@
    v:

    Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:99
  • Returns boolean

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:1019
    • @@ -158,7 +158,7 @@

      Parameters

      vertexOrId: VertexId | V

    Returns null | V

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:1028
    • @@ -171,7 +171,7 @@

      Parameters

      vertexOrId: VertexId | V

    Returns VertexId

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:1033
    • @@ -184,7 +184,7 @@

      Parameters

      value: Map<VertexId, V>

    Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:1037
  • @@ -215,7 +215,7 @@
    Optional Returns boolean
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:222
  • @@ -242,7 +242,7 @@
    Optional Returns boolean
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:170
    • @@ -302,7 +302,7 @@
      pathspreMap: Map<V, V>
    +
  • Defined in src/data-structures/graph/abstract-graph.ts:725
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:131
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:121
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:137
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:596
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:456
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:139
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:141
    • @@ -510,7 +510,7 @@
      costspredecessor: (null | V)[][]
    +
  • Defined in src/data-structures/graph/abstract-graph.ts:851
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:268
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:135
    • @@ -565,7 +565,7 @@

      Parameters

      edge: E

    Returns null | [V, V]

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:145
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:326
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:384
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:143
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:304
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:154
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:215
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:164
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:199
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:133
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:187
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:251
    • @@ -907,7 +907,7 @@
      dfnMaplowMap: Map<V, number>
    +
  • Defined in src/data-structures/graph/abstract-graph.ts:915
  • Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:42
  • +
  • Defined in src/data-structures/queue/deque.ts:186
    • @@ -151,7 +151,7 @@

      Returns null

    +
  • Defined in src/data-structures/queue/deque.ts:249
  • +
  • Defined in src/data-structures/queue/deque.ts:275
  • +
  • Defined in src/data-structures/queue/deque.ts:294
  • +
  • Defined in src/data-structures/queue/deque.ts:226
  • +
  • Defined in src/data-structures/queue/deque.ts:234
  • +
  • Defined in src/data-structures/queue/deque.ts:203
  • +
  • Defined in src/data-structures/queue/deque.ts:194
  • +
  • Defined in src/data-structures/queue/deque.ts:285
  • +
  • Defined in src/data-structures/queue/deque.ts:261
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1438
    • @@ -529,7 +529,7 @@

      Returns void

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:58
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:134
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:370
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:45
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:211
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -1060,7 +1060,7 @@

    Returns IBST.getLeftMost

    Inherited from BinaryTree.getLeftMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:240
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1213,7 +1213,7 @@

    Returns IBST.getRightMost

    Inherited from BinaryTree.getRightMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:475
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:223
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:293
  • 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.

    @@ -1443,7 +1443,7 @@

    Returns numberImplementation of IBST.levelIterative

    Inherited from BinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1467,7 +1467,7 @@

    Returns IBST.levelIterative

    Inherited from BinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1491,7 +1491,7 @@

    Returns IBST.levelIterative

    Inherited from BinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1533,7 +1533,7 @@

    Returns numberImplementation of IBST.listLevels

    Inherited from BinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1557,7 +1557,7 @@

    Returns IBST.listLevels

    Inherited from BinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1581,7 +1581,7 @@

    Returns IBST.listLevels

    Inherited from BinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • 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.

    @@ -1619,7 +1619,7 @@

    Returns numberImplementation of IBST.morris

    Inherited from BinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -1643,7 +1643,7 @@

    Returns IBST.morris

    Inherited from BinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -1667,7 +1667,7 @@

    Returns IBST.morris

    Inherited from BinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:434
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:360
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:205
  • +
  • Defined in src/data-structures/binary-tree/binary-indexed-tree.ts:51
    • @@ -159,7 +159,7 @@

      Returns number

    +
  • Defined in src/data-structures/binary-tree/binary-indexed-tree.ts:68
  • +
  • Defined in src/data-structures/binary-tree/binary-indexed-tree.ts:37
    • @@ -199,7 +199,7 @@

      Parameters

      x: number

    Returns number

    +
  • Defined in src/data-structures/binary-tree/binary-indexed-tree.ts:25
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1438
    • @@ -513,7 +513,7 @@

      Returns void

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:255
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:314
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/binary-tree.ts:44
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:599
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -980,7 +980,7 @@

    Returns AbstractBinaryTree.getLeftMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:544
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1133,7 +1133,7 @@

    Returns AbstractBinaryTree.getRightMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • 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.

    @@ -1305,7 +1305,7 @@

    Returns numberImplementation of IBinaryTree.levelIterative

    Inherited from AbstractBinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1329,7 +1329,7 @@

    Returns AbstractBinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1353,7 +1353,7 @@

    Returns AbstractBinaryTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1395,7 +1395,7 @@

    Returns numberImplementation of IBinaryTree.listLevels

    Inherited from AbstractBinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1419,7 +1419,7 @@

    Returns AbstractBinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1443,7 +1443,7 @@

    Returns AbstractBinaryTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • 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.

    @@ -1481,7 +1481,7 @@

    Returns numberImplementation of IBinaryTree.morris

    Inherited from AbstractBinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -1505,7 +1505,7 @@

    Returns AbstractBinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -1529,7 +1529,7 @@

    Returns AbstractBinaryTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:360
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:205
  • +
  • Defined in src/data-structures/matrix/navigator.ts:12
  • +
  • Defined in src/data-structures/hash/coordinate-map.ts:60
  • +
  • Defined in src/data-structures/hash/coordinate-map.ts:49
    • @@ -280,7 +280,7 @@

      Returns boolean

    +
  • Defined in src/data-structures/hash/coordinate-map.ts:27
    • @@ -320,7 +320,7 @@

      Returns

    +
  • Defined in src/data-structures/hash/coordinate-map.ts:39
    • diff --git a/docs/classes/CoordinateSet.html b/docs/classes/CoordinateSet.html index e53cde6e..d36b508d 100644 --- a/docs/classes/CoordinateSet.html +++ b/docs/classes/CoordinateSet.html @@ -32,7 +32,7 @@

      Hierarchy

      • CoordinateSet
    +
  • Defined in src/data-structures/hash/coordinate-set.ts:8
  • @@ -81,7 +81,7 @@
    Optional Returns CoordinateSet
    +
  • Defined in src/data-structures/hash/coordinate-set.ts:9
  • Properties

    @@ -94,7 +94,7 @@
    _joint: string = '_'
    +
  • Defined in src/data-structures/hash/coordinate-set.ts:14
  • size: number
    @@ -119,7 +119,7 @@
    +
  • Defined in src/data-structures/hash/coordinate-set.ts:16
  • Methods

    @@ -146,7 +146,7 @@

    Parameters

    v: string

    Returns void

    +
  • Defined in src/data-structures/hash/coordinate-set.ts:53
  • +
  • Defined in src/data-structures/hash/coordinate-set.ts:38
  • +
  • Defined in src/data-structures/hash/coordinate-set.ts:49
  • +
  • Defined in src/data-structures/hash/coordinate-set.ts:27
    • diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index 647328d0..4682cc71 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -27,7 +27,7 @@

      Hierarchy

      • Deque
    +
  • Defined in src/data-structures/queue/deque.ts:12
  • @@ -88,7 +88,7 @@

    Returns

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:55
  • Accessors

    @@ -99,7 +99,7 @@ +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:63
  • set head(value): void
  • @@ -110,7 +110,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:67
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:83
  • set tail(value): void
  • @@ -139,7 +139,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:77
  • Methods

    @@ -153,7 +153,7 @@

    Returns void

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:332
  • The delete function removes a node from a doubly linked list based on either the node itself or its value.

    @@ -196,7 +196,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:280
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:265
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:463
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:345
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:384
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:214
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:428
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:181
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:198
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:363
  • The insertAfter function inserts a new node with a given value after an existing node in a doubly linked list.

    @@ -505,7 +505,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:496
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:236
  • The insertBefore function inserts a new value before an existing value or node in a doubly linked list.

    @@ -591,7 +591,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:535
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:446
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:123
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:105
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:485
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:412
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:142
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:319
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:399
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:161
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:93
  • Returns void

    +
  • Defined in src/data-structures/graph/directed-graph.ts:60
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:85
  • set src(v): void
  • @@ -167,7 +167,7 @@

    Parameters

    v: VertexId
  • Returns void

    +
  • Defined in src/data-structures/graph/directed-graph.ts:50
  • set val(value): void
  • @@ -187,7 +187,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:69
  • set weight(v): void
  • @@ -207,7 +207,7 @@
    v:

    Returns void

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:79
  • Methods

    @@ -230,7 +230,7 @@

    Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:99
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:434
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1019
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1028
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1033
    • @@ -241,7 +241,7 @@

      Parameters

      value: Map<V, E[]>

    Returns void

    +
  • Defined in src/data-structures/graph/directed-graph.ts:467
    • @@ -254,7 +254,7 @@

      Parameters

      value: Map<V, E[]>

    Returns void

    +
  • Defined in src/data-structures/graph/directed-graph.ts:463
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1037
  • @@ -301,7 +301,7 @@

    Returns booleanImplementation of IDirectedGraph.addEdge

    Inherited from AbstractGraph.addEdge

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:222
  • @@ -330,7 +330,7 @@

    Returns booleanImplementation of IDirectedGraph.addVertex

    Inherited from AbstractGraph.addVertex

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:170
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:725
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:121
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:102
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:257
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:596
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:456
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:377
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:284
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:851
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:268
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:312
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:133
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:302
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:293
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:414
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:326
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:384
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:391
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:304
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:154
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:215
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:164
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:266
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:230
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:275
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:244
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:199
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:183
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:157
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:210
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:187
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:251
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:915
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:335
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:42
  • Returns void

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:77
  • Methods

    @@ -169,7 +169,7 @@
    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:332
    • @@ -191,7 +191,7 @@

      Returns boolean

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:279
  • The delete function removes a node from a doubly linked list based on either the node itself or its value.

    @@ -210,7 +210,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:280
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:265
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:463
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:345
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:384
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:214
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:428
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:181
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:198
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:363
  • The insertAfter function inserts a new node with a given value after an existing node in a doubly linked list.

    @@ -508,7 +508,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:496
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:236
  • The insertBefore function inserts a new value before an existing value or node in a doubly linked list.

    @@ -591,7 +591,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:535
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:446
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:123
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:105
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:485
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:412
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:142
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:319
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:399
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:161
  • +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:93
  • Returns void

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:46
  • set val(value): void
  • @@ -156,7 +156,7 @@

    Parameters

    value: T
  • Returns void

    +
  • Defined in src/data-structures/linked-list/doubly-linked-list.ts:26
  • +
  • Defined in src/data-structures/heap/heap.ts:69
  • Accessors

    @@ -122,7 +122,7 @@
    +
  • Defined in src/data-structures/heap/heap.ts:65
    • @@ -141,7 +141,7 @@

      Parameters

      val: T

    Returns number

    +
  • Defined in src/data-structures/heap/heap.ts:70
  • +
  • Defined in src/data-structures/heap/heap.ts:78
  • Methods

    @@ -185,7 +185,7 @@

    Returns

    +
  • Defined in src/data-structures/heap/heap.ts:130
  • +
  • Defined in src/data-structures/heap/heap.ts:209
  • +
  • Defined in src/data-structures/heap/heap.ts:160
  • +
  • Defined in src/data-structures/heap/heap.ts:86
  • The peek function returns the top item in the priority queue without removing it.

    @@ -259,7 +259,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:91
  • The peek function returns the top item in the priority queue without removing it.

    @@ -273,7 +273,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:92
  • The peekLast function returns the last item in the heap.

    @@ -304,7 +304,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:106
  • The peekLast function returns the last item in the heap.

    @@ -318,7 +318,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:107
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -349,7 +349,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:138
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -363,7 +363,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:139
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -404,7 +404,7 @@

    isItem: Returns (undefined | T)[]
  • +
  • Defined in src/data-structures/heap/heap.ts:188
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -423,7 +423,7 @@

    isItem: Returns (null | HeapItem<T>)[]
  • +
  • Defined in src/data-structures/heap/heap.ts:189
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -454,7 +454,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:173
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -468,7 +468,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:174
  • Returns void

    +
  • Defined in src/data-structures/heap/heap.ts:40
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:300
    • @@ -184,7 +184,7 @@

      Returns number

    +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:479
  • The delete function removes a node with a specific value from a singly linked list.

    @@ -227,7 +227,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:218
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:205
  • +
  • Defined in src/data-structures/queue/queue.ts:21
  • +
  • Defined in src/data-structures/queue/queue.ts:13
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:348
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:387
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:174
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:90
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:190
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:365
  • The insertAfter function inserts a new node with a given value after an existing node in a singly linked list.

    @@ -468,7 +468,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:441
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:269
  • The insertBefore function inserts a new value before an existing value in a singly linked list.

    @@ -542,7 +542,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:401
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:293
  • +
  • Defined in src/data-structures/queue/queue.ts:29
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:117
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:99
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:324
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:142
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:310
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:155
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:82
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:83
  • Accessors

    @@ -116,7 +116,7 @@ +
  • Defined in src/data-structures/graph/directed-graph.ts:56
  • set dest(v): void
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:60
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:85
  • set src(v): void
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:50
  • set val(value): void
  • @@ -176,7 +176,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:69
  • set weight(v): void
  • @@ -196,7 +196,7 @@
    v:

    Returns void

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:79
  • Methods

    @@ -219,7 +219,7 @@

    Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:99
  • Returns void

    +
  • Defined in src/data-structures/graph/map-graph.ts:95
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:84
  • set origin(value): void
  • @@ -194,7 +194,7 @@

    Parameters

    value: MapGraphCoordinate
  • Returns void

    +
  • Defined in src/data-structures/graph/map-graph.ts:85
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:78
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:111
  • Methods

    @@ -237,7 +237,7 @@

    Returns boolean

    +
  • Defined in src/data-structures/graph/directed-graph.ts:434
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1019
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1028
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1033
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:467
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:463
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1037
  • @@ -352,7 +352,7 @@
    Optional Returns boolean
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:222
  • @@ -379,7 +379,7 @@
    Optional Returns boolean
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:170
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:725
  • +
  • Defined in src/data-structures/graph/map-graph.ts:126
  • +
  • Defined in src/data-structures/graph/map-graph.ts:110
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:257
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:596
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:456
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:377
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:284
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:851
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:268
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:312
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:133
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:302
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:293
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:414
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:326
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:384
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:391
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:304
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:154
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:215
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:164
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:266
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:230
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:275
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:244
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:199
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:183
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:157
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:210
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:187
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:251
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:915
  • +
  • Defined in src/data-structures/graph/directed-graph.ts:335
  • Returns void

    +
  • Defined in src/data-structures/graph/map-graph.ts:29
  • set long(value): void
  • @@ -165,7 +165,7 @@

    Parameters

    value: number
  • Returns void

    +
  • Defined in src/data-structures/graph/map-graph.ts:39
  • set val(value): void
  • @@ -185,7 +185,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:42
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:67
    • @@ -123,7 +123,7 @@

      Returns number

    +
  • Defined in src/data-structures/matrix/matrix2d.ts:36
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:44
  • Methods

    @@ -162,7 +162,7 @@

    Returns

    +
  • Defined in src/data-structures/matrix/matrix2d.ts:77
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:110
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:130
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:146
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:186
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:177
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:94
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:203
  • +
  • Defined in src/data-structures/matrix/matrix2d.ts:158
  • +
  • Defined in src/data-structures/heap/max-heap.ts:18
  • _priorityExtractor: ((val) => number)
    @@ -114,7 +114,7 @@
    val: Returns number
    +
  • Defined in src/data-structures/heap/heap.ts:69
  • Accessors

    @@ -125,7 +125,7 @@
    +
  • Defined in src/data-structures/heap/heap.ts:65
    • @@ -145,7 +145,7 @@
      val: Returns number
    +
  • Defined in src/data-structures/heap/heap.ts:70
    • @@ -158,7 +158,7 @@

      Returns number

    +
  • Defined in src/data-structures/heap/heap.ts:78
  • Methods

    @@ -191,7 +191,7 @@

    Throws

    if priority is not a valid number

    +
  • Defined in src/data-structures/heap/heap.ts:130
  • +
  • Defined in src/data-structures/heap/heap.ts:209
  • +
  • Defined in src/data-structures/heap/heap.ts:160
  • +
  • Defined in src/data-structures/heap/heap.ts:86
  • The peek function returns the top item in the priority queue without removing it.

    @@ -270,7 +270,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:91
  • The peek function returns the top item in the priority queue without removing it.

    @@ -285,7 +285,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:92
  • The peekLast function returns the last item in the heap.

    @@ -318,7 +318,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:106
  • The peekLast function returns the last item in the heap.

    @@ -333,7 +333,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:107
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -366,7 +366,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:138
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -381,7 +381,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:139
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -424,7 +424,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:188
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -444,7 +444,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:189
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -477,7 +477,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:173
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -492,7 +492,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:174
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:237
  • _nodes: T[] = []
    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:27
  • Accessors

    @@ -151,7 +151,7 @@
    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:29
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:33
  • Methods

    @@ -185,7 +185,7 @@

    Returns (

    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:204
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:251
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:354
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:309
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:290
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:281
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:299
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:341
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:328
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:272
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:233
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:260
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:73
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:135
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:153
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:64
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:84
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:128
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:165
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:118
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:93
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:101
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:188
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:143
  • The function heapify creates a max priority queue from the given options and returns it.

    @@ -643,7 +643,7 @@

    Returns

  • +
  • Defined in src/data-structures/priority-queue/max-priority-queue.ts:34
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:57
  • +
  • Defined in src/data-structures/heap/min-heap.ts:18
  • _priorityExtractor: ((val) => number)
    @@ -115,7 +115,7 @@
    val: Returns number
    +
  • Defined in src/data-structures/heap/heap.ts:69
  • Accessors

    @@ -126,7 +126,7 @@
    +
  • Defined in src/data-structures/heap/heap.ts:65
    • @@ -146,7 +146,7 @@
      val: Returns number
    +
  • Defined in src/data-structures/heap/heap.ts:70
  • +
  • Defined in src/data-structures/heap/heap.ts:78
  • Methods

    @@ -192,7 +192,7 @@

    Throws

    if priority is not a valid number

    +
  • Defined in src/data-structures/heap/heap.ts:130
  • +
  • Defined in src/data-structures/heap/heap.ts:209
  • +
  • Defined in src/data-structures/heap/heap.ts:160
  • +
  • Defined in src/data-structures/heap/heap.ts:86
  • The peek function returns the top item in the priority queue without removing it.

    @@ -271,7 +271,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:91
  • The peek function returns the top item in the priority queue without removing it.

    @@ -286,7 +286,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:92
  • The peekLast function returns the last item in the heap.

    @@ -319,7 +319,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:106
  • The peekLast function returns the last item in the heap.

    @@ -334,7 +334,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:107
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -367,7 +367,7 @@

    Returns undefined

  • +
  • Defined in src/data-structures/heap/heap.ts:138
  • The poll function returns the top item from a priority queue or null if the queue is empty.Removes and returns an val with the highest priority in the queue

    @@ -382,7 +382,7 @@

    Returns null

  • +
  • Defined in src/data-structures/heap/heap.ts:139
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -425,7 +425,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:188
  • The function sorts the elements in the priority queue and returns either the sorted items or their values depending @@ -445,7 +445,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:189
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -478,7 +478,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:173
  • The toArray function returns an array of HeapItem<T> objects.

    @@ -493,7 +493,7 @@

    Returns (

  • +
  • Defined in src/data-structures/heap/heap.ts:174
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:237
  • _nodes: T[] = []
    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:27
  • Accessors

    @@ -151,7 +151,7 @@
    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:29
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:33
  • Methods

    @@ -185,7 +185,7 @@

    Returns (

    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:204
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:251
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:354
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:309
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:290
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:281
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:299
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:341
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:328
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:272
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:233
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:260
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:73
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:135
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:153
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:64
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:84
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:128
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:165
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:118
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:93
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:101
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:188
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:143
  • The function heapify creates a new MinPriorityQueue instance and sets the comparator function based on the options @@ -645,7 +645,7 @@

    Returns

  • +
  • Defined in src/data-structures/priority-queue/min-priority-queue.ts:34
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:57
  • +
  • Defined in src/data-structures/matrix/navigator.ts:29
  • Methods

    @@ -138,7 +138,7 @@

    Returns boolean

    +
  • Defined in src/data-structures/matrix/navigator.ts:71
  • +
  • Defined in src/data-structures/matrix/navigator.ts:101
  • +
  • Defined in src/data-structures/matrix/navigator.ts:54
  • +
  • Defined in src/data-structures/queue/deque.ts:22
  • _size: number = 0
    +
  • Defined in src/data-structures/queue/deque.ts:58
  • Accessors

    @@ -125,7 +125,7 @@

    Returns void

    +
  • Defined in src/data-structures/queue/deque.ts:34
  • set first(value): void
  • @@ -153,7 +153,7 @@

    Parameters

    value: number
  • Returns void

    +
  • Defined in src/data-structures/queue/deque.ts:44
  • set last(value): void
  • @@ -171,7 +171,7 @@

    Parameters

    value: number
  • Returns void

    +
  • Defined in src/data-structures/queue/deque.ts:54
    • @@ -182,7 +182,7 @@

      Returns {
      [p: number]: T

    +
  • Defined in src/data-structures/queue/deque.ts:24
  • +
  • Defined in src/data-structures/queue/deque.ts:60
  • Methods

    @@ -208,7 +208,7 @@
    value: [p: number]: T

    Returns void

    +
  • Defined in src/data-structures/queue/deque.ts:159
    • @@ -221,7 +221,7 @@

      Parameters

      value: number

    Returns void

    +
  • Defined in src/data-structures/queue/deque.ts:163
  • +
  • Defined in src/data-structures/queue/deque.ts:69
  • +
  • Defined in src/data-structures/queue/deque.ts:85
  • +
  • Defined in src/data-structures/queue/deque.ts:147
  • +
  • Defined in src/data-structures/queue/deque.ts:155
  • +
  • Defined in src/data-structures/queue/deque.ts:114
  • +
  • Defined in src/data-structures/queue/deque.ts:136
  • +
  • Defined in src/data-structures/queue/deque.ts:101
  • +
  • Defined in src/data-structures/queue/deque.ts:122
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:251
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:354
    • @@ -217,7 +217,7 @@

      Returns number

    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:309
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:290
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:281
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:299
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:341
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:328
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:272
    • @@ -351,7 +351,7 @@

      Parameters

      value: T[]

    Returns void

    +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:233
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:260
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:73
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:135
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:153
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:64
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:84
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:128
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:165
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:118
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:93
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:101
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:188
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:143
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:44
  • +
  • Defined in src/data-structures/priority-queue/priority-queue.ts:57
  • Returns void

    +
  • Defined in src/data-structures/queue/queue.ts:62
    • @@ -151,7 +151,7 @@

      Returns number

    +
  • Defined in src/data-structures/queue/queue.ts:70
  • Methods

    @@ -161,7 +161,7 @@
    +
  • Defined in src/data-structures/queue/queue.ts:186
  • +
  • Defined in src/data-structures/queue/queue.ts:173
  • +
  • Defined in src/data-structures/queue/queue.ts:182
  • +
  • Defined in src/data-structures/queue/queue.ts:146
  • +
  • Defined in src/data-structures/queue/queue.ts:138
    • @@ -228,7 +228,7 @@

      Parameters

      index: number

    Returns undefined | T

    +
  • Defined in src/data-structures/queue/queue.ts:150
  • +
  • Defined in src/data-structures/queue/queue.ts:158
  • +
  • Defined in src/data-structures/queue/queue.ts:121
  • +
  • Defined in src/data-structures/queue/queue.ts:130
  • +
  • Defined in src/data-structures/queue/queue.ts:91
  • +
  • Defined in src/data-structures/queue/queue.ts:101
  • +
  • Defined in src/data-structures/queue/queue.ts:166
  • +
  • Defined in src/data-structures/queue/queue.ts:82
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1438
    • @@ -521,7 +521,7 @@

      Returns void

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:58
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:134
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:370
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/rb-tree.ts:63
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:211
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -1054,7 +1054,7 @@

    Returns IRBTree.getLeftMost

    Inherited from BST.getLeftMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:240
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1207,7 +1207,7 @@

    Returns IRBTree.getRightMost

    Inherited from BST.getRightMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:475
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:223
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:293
  • 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.

    @@ -1440,7 +1440,7 @@

    Returns numberImplementation of IRBTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1464,7 +1464,7 @@

    Returns IRBTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1488,7 +1488,7 @@

    Returns IRBTree.levelIterative

    Inherited from BST.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1530,7 +1530,7 @@

    Returns numberImplementation of IRBTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1554,7 +1554,7 @@

    Returns IRBTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1578,7 +1578,7 @@

    Returns IRBTree.listLevels

    Inherited from BST.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • 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.

    @@ -1616,7 +1616,7 @@

    Returns numberImplementation of IRBTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -1640,7 +1640,7 @@

    Returns IRBTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -1664,7 +1664,7 @@

    Returns IRBTree.morris

    Inherited from BST.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:434
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:360
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:205
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:56
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:239
    • @@ -184,7 +184,7 @@

      Parameters

      value: number

    Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:231
    • @@ -197,7 +197,7 @@

      Parameters

      value: number[]

    Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:227
  • +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:130
  • +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:189
  • +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:153
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:34
  • set left(v): void
  • @@ -138,7 +138,7 @@

    Parameters

    v: null | SegmentTreeNode
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:64
  • set right(v): void
  • @@ -156,7 +156,7 @@

    Parameters

    v: null | SegmentTreeNode
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:74
  • set start(v): void
  • @@ -174,7 +174,7 @@

    Parameters

    v: number
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:24
  • set sum(v): void
  • @@ -192,7 +192,7 @@

    Parameters

    v: number
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:54
  • set val(v): void
  • @@ -210,7 +210,7 @@

    Parameters

    v: null | number
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/segment-tree.ts:44
  • Returns void

    +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:66
  • Methods

    @@ -164,7 +164,7 @@
    +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:493
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:300
    • @@ -195,7 +195,7 @@

      Returns number

    +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:479
  • The delete function removes a node with a specific value from a singly linked list.

    @@ -236,7 +236,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:218
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:205
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:348
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:387
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:174
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:90
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:190
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:365
  • The insertAfter function inserts a new node with a given value after an existing node in a singly linked list.

    @@ -437,7 +437,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:441
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:269
  • The insertBefore function inserts a new value before an existing value in a singly linked list.

    @@ -508,7 +508,7 @@

    Returns boolean

  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:401
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:293
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:117
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:99
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:324
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:142
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:310
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:155
  • +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:82
  • Returns void

    +
  • Defined in src/data-structures/linked-list/singly-linked-list.ts:25
  • +
  • Defined in src/data-structures/stack/stack.ts:33
    • @@ -140,7 +140,7 @@

      Returns null

    +
  • Defined in src/data-structures/stack/stack.ts:49
  • +
  • Defined in src/data-structures/stack/stack.ts:70
  • +
  • Defined in src/data-structures/stack/stack.ts:60
  • +
  • Defined in src/data-structures/stack/stack.ts:41
  • +
  • Defined in src/data-structures/stack/stack.ts:80
  • +
  • Defined in src/data-structures/stack/stack.ts:25
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:519
  • _count: number = 0
    +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:60
  • Accessors

    @@ -182,7 +182,7 @@
    +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:62
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:168
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:156
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:162
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:174
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:192
    • @@ -242,7 +242,7 @@

      Returns src/data-structures/binary-tree/abstract-binary-tree.ts:182

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:186
    • @@ -252,7 +252,7 @@

      Returns src/data-structures/binary-tree/abstract-binary-tree.ts:176

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:180
  • Methods

    @@ -268,7 +268,7 @@

    Returns numberImplementation of ITreeMultiset.BFS

    Inherited from AVLTree.BFS

    +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:929
  • Performs a breadth-first search (BFS) on a binary tree, accumulating properties of each node based on the specified property name.

    @@ -287,7 +287,7 @@

    Returns numberImplementation of ITreeMultiset.BFS

    Inherited from AVLTree.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:936
  • Performs a breadth-first search (BFS) on a binary tree, accumulating the 'val' property of each node.

    @@ -306,7 +306,7 @@

    Returns AVLTree.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:943
  • Performs a breadth-first search (BFS) on a binary tree, accumulating nodes themselves.

    @@ -325,7 +325,7 @@

    Returns AVLTree.BFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:950
    • @@ -338,7 +338,7 @@

      Returns number

    +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:527
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -376,7 +376,7 @@

    Returns numberImplementation of ITreeMultiset.DFS

    Inherited from AVLTree.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:988
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -400,7 +400,7 @@

    Returns AVLTree.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:996
  • Performs a depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -424,7 +424,7 @@

    Returns AVLTree.DFS

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1004
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:579
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates properties of each node based on the specified property name.

    @@ -484,7 +484,7 @@

    Returns numberImplementation of ITreeMultiset.DFSIterative

    Inherited from AVLTree.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1055
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates the 'val' property of each node.

    @@ -508,7 +508,7 @@

    Returns AVLTree.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1063
  • Performs an iterative depth-first search (DFS) traversal on a binary tree and accumulates nodes themselves.

    @@ -532,7 +532,7 @@

    Returns AVLTree.DFSIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1071
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:566
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1584
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:194
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:84
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:155
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:185
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:112
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:268
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:233
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1526
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1548
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:697
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1466
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1507
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1518
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1474
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1498
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1490
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1482
  • +
  • Defined in src/data-structures/binary-tree/avl-tree.ts:98
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:116
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:229
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:370
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:651
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:688
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:75
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:345
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:211
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:412
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:430
  • The function getLeftMost returns the leftmost node in a binary tree, starting from a specified node or the root if @@ -1352,7 +1352,7 @@

    Returns AVLTree.getLeftMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:651
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:479
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:240
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:486
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:615
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1284
  • The getRightMost function returns the rightmost node in a binary tree, either recursively or iteratively using tail @@ -1534,7 +1534,7 @@

    Returns AVLTree.getRightMost

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:705
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:368
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:789
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:582
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:475
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:779
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:237
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:529
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:745
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:223
  • +
  • Defined in src/data-structures/binary-tree/bst.ts:293
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:591
  • 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.

    @@ -1810,7 +1810,7 @@

    Returns numberImplementation of ITreeMultiset.levelIterative

    Inherited from AVLTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1138
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates the 'val' property of each node.

    @@ -1834,7 +1834,7 @@

    Returns AVLTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1146
  • Performs a level-order traversal on a binary tree starting from the specified node and accumulates nodes themselves.

    @@ -1858,7 +1858,7 @@

    Returns AVLTree.levelIterative

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1154
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1900,7 +1900,7 @@

    Returns numberImplementation of ITreeMultiset.listLevels

    Inherited from AVLTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1205
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1924,7 +1924,7 @@

    Returns AVLTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1213
  • Collects nodes from a binary tree by a specified property and organizes them into levels.

    @@ -1948,7 +1948,7 @@

    Returns AVLTree.listLevels

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1221
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:540
  • 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.

    @@ -2009,7 +2009,7 @@

    Returns numberImplementation of ITreeMultiset.morris

    Inherited from AVLTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1315
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates the 'val' property of each node.

    @@ -2033,7 +2033,7 @@

    Returns AVLTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1323
  • Performs an in-order, pre-order, or post-order traversal on a binary tree using the Morris traversal algorithm and accumulates nodes themselves.

    @@ -2057,7 +2057,7 @@

    Returns AVLTree.morris

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:1331
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:552
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:258
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:305
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:882
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:444
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:826
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:405
  • +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:86
  • Returns void

    +
  • Defined in src/data-structures/binary-tree/tree-multiset.ts:38
  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:110
  • set height(v): void
  • @@ -163,7 +163,7 @@

    Returns voidImplementation of ITreeMultisetNode.height

    Inherited from AVLTreeNode.height

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:102
  • set id(v): void
  • @@ -185,7 +185,7 @@

    Returns voidImplementation of ITreeMultisetNode.id

    Inherited from AVLTreeNode.id

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:46
  • set left(v): void
  • @@ -207,7 +207,7 @@

    Returns voidImplementation of ITreeMultisetNode.left

    Inherited from AVLTreeNode.left

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:66
  • set parent(v): void
  • @@ -229,7 +229,7 @@

    Returns voidImplementation of ITreeMultisetNode.parent

    Inherited from AVLTreeNode.parent

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:92
  • set right(v): void
  • @@ -251,7 +251,7 @@

    Returns voidImplementation of ITreeMultisetNode.right

    Inherited from AVLTreeNode.right

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:79
  • set val(value): void
  • @@ -273,7 +273,7 @@

    Returns voidImplementation of ITreeMultisetNode.val

    Inherited from AVLTreeNode.val

  • +
  • Defined in src/data-structures/binary-tree/abstract-binary-tree.ts:56
  • Returns void

    +
  • Defined in src/data-structures/tree/tree.ts:34
  • set id(value): void
  • @@ -130,7 +130,7 @@

    Parameters

    value: string
  • Returns void

    +
  • Defined in src/data-structures/tree/tree.ts:14
  • set value(value): void
  • @@ -148,7 +148,7 @@

    Parameters

    value: undefined | T
  • Returns void

    +
  • Defined in src/data-structures/tree/tree.ts:24
  • Methods

    @@ -163,7 +163,7 @@

    Parameters

    children: TreeNode<T> | TreeNode<T>[]

    Returns void

    +
  • Defined in src/data-structures/tree/tree.ts:38
  • +
  • Defined in src/data-structures/tree/tree.ts:49
  • Returns void

    +
  • Defined in src/data-structures/trie/trie.ts:62
  • Methods

    @@ -105,7 +105,7 @@

    Parameters

    word: string

    Returns boolean

    +
  • Defined in src/data-structures/trie/trie.ts:66
  • +
  • Defined in src/data-structures/trie/trie.ts:196
  • +
  • Defined in src/data-structures/trie/trie.ts:178
    • @@ -153,7 +153,7 @@

      Parameters

      input: string

    Returns boolean

    +
  • Defined in src/data-structures/trie/trie.ts:80
  • +
  • Defined in src/data-structures/trie/trie.ts:128
  • +
  • Defined in src/data-structures/trie/trie.ts:159
  • +
  • Defined in src/data-structures/trie/trie.ts:143
    • @@ -227,7 +227,7 @@

      Parameters

      word: string

    Returns boolean

    +
  • Defined in src/data-structures/trie/trie.ts:90
  • Returns void

    +
  • Defined in src/data-structures/trie/trie.ts:31
  • set isEnd(v): void
  • @@ -121,7 +121,7 @@

    Parameters

    v: boolean
  • Returns void

    +
  • Defined in src/data-structures/trie/trie.ts:41
  • set val(v): void
  • @@ -139,7 +139,7 @@

    Parameters

    v: string
  • Returns void

    +
  • Defined in src/data-structures/trie/trie.ts:21
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:83
  • _vertices: [VertexId, VertexId]
    +
  • Defined in src/data-structures/graph/undirected-graph.ts:42
  • Accessors

    @@ -121,7 +121,7 @@
    +
  • Defined in src/data-structures/graph/abstract-graph.ts:85
  • set val(value): void
  • @@ -141,7 +141,7 @@
    value: Returns void
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:69
  • set vertices(v): void
  • @@ -159,7 +159,7 @@

    Parameters

    v: [VertexId, VertexId]
  • Returns void

    +
  • Defined in src/data-structures/graph/undirected-graph.ts:48
  • set weight(v): void
  • @@ -179,7 +179,7 @@
    v:

    Returns void

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:79
  • Methods

    @@ -202,7 +202,7 @@

    Returns void

    +
  • Defined in src/data-structures/graph/abstract-graph.ts:99
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:251
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1019
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1028
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1033
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:271
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:1037
  • @@ -265,7 +265,7 @@

    Returns booleanImplementation of IUNDirectedGraph.addEdge

    Inherited from AbstractGraph.addEdge

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:222
  • @@ -294,7 +294,7 @@

    Returns booleanImplementation of IUNDirectedGraph.addVertex

    Inherited from AbstractGraph.addVertex

  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:170
    • @@ -355,7 +355,7 @@
      preMap
    +
  • Defined in src/data-structures/graph/abstract-graph.ts:725
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:97
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:83
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:167
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:596
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:456
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:195
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:182
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:851
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:268
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:109
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:233
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:326
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:384
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:211
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:304
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:154
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:215
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:164
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:199
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:156
  • +
  • Defined in src/data-structures/graph/undirected-graph.ts:131
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:187
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:251
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:915
  • +
  • Defined in src/data-structures/graph/abstract-graph.ts:42
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:19
    • @@ -136,7 +136,7 @@

      Returns number

    +
  • Defined in src/data-structures/matrix/vector2d.ts:27
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:35
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:44
  • Methods

    @@ -174,7 +174,7 @@
    +
  • Defined in src/data-structures/matrix/vector2d.ts:310
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:203
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:58
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:288
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:244
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:258
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:110
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:214
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:121
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:135
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:98
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:150
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:181
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:301
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:191
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:273
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:73
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:86
  • +
  • Defined in src/data-structures/matrix/vector2d.ts:168
  • +
  • Defined in src/types/data-structures/bst.ts:13
  • +
  • Defined in src/types/data-structures/abstract-binary-tree.ts:21
  • +
  • Defined in src/types/data-structures/abstract-binary-tree.ts:10
  • @@ -41,12 +41,12 @@

    Enumeration Members

    ITERATIVE: "ITERATIVE"
    +
  • Defined in src/types/data-structures/abstract-binary-tree.ts:11
  • RECURSIVE: "RECURSIVE"
    +
  • Defined in src/types/data-structures/abstract-binary-tree.ts:12
  • +
  • Defined in src/types/data-structures/rb-tree.ts:4
  • +
  • Defined in src/types/data-structures/directed-graph.ts:5
  • +
  • Defined in src/utils/utils.ts:18
  • +
  • Defined in src/utils/utils.ts:37
  • +
  • Defined in src/utils/utils.ts:41
  • +
  • Defined in src/utils/utils.ts:47
  • +
  • Defined in src/utils/utils.ts:64
  • +
  • Defined in src/utils/utils.ts:10