diff --git a/src/data-structures/binary-tree/avl-tree.ts b/src/data-structures/binary-tree/avl-tree.ts index e232497..b22c120 100644 --- a/src/data-structures/binary-tree/avl-tree.ts +++ b/src/data-structures/binary-tree/avl-tree.ts @@ -10,8 +10,7 @@ import type {AVLTreeNodeNested, AVLTreeOptions, BinaryTreeDeletedResult, BinaryT import {MapCallback} from '../../types'; import {IBinaryTree} from '../../interfaces'; -export class AVLTreeNode = AVLTreeNodeNested> extends - BSTNode { +export class AVLTreeNode = AVLTreeNodeNested> extends BSTNode { height: number; constructor(key: BinaryTreeNodeKey, val?: V) { @@ -20,7 +19,7 @@ export class AVLTreeNode = AVLTreeNodeNeste } } -export class AVLTree = AVLTreeNode> extends BST implements IBinaryTree{ +export class AVLTree = AVLTreeNode> extends BST implements IBinaryTree { /** * This is a constructor function for an AVL tree data structure in TypeScript. * @param {AVLTreeOptions} [options] - The `options` parameter is an optional object that can be passed to the diff --git a/src/data-structures/binary-tree/binary-tree.ts b/src/data-structures/binary-tree/binary-tree.ts index 5a30edf..0c897b3 100644 --- a/src/data-structures/binary-tree/binary-tree.ts +++ b/src/data-structures/binary-tree/binary-tree.ts @@ -115,7 +115,7 @@ export class BinaryTreeNode = BinaryTree * Represents a binary tree data structure. * @template N - The type of the binary tree's nodes. */ -export class BinaryTree = BinaryTreeNode> implements IBinaryTree{ +export class BinaryTree = BinaryTreeNode> implements IBinaryTree { /** * Creates a new instance of BinaryTree. * @param {BinaryTreeOptions} [options] - The options for the binary tree.