diff --git a/src/data-structures/binary-tree/avl-tree-multi-map.ts b/src/data-structures/binary-tree/avl-tree-multi-map.ts index 2d2119a..e76cee8 100644 --- a/src/data-structures/binary-tree/avl-tree-multi-map.ts +++ b/src/data-structures/binary-tree/avl-tree-multi-map.ts @@ -7,6 +7,7 @@ */ import { AVLTreeMultiMapOptions, BTNOptKeyOrNull, BTNRep, OptNodeOrNull } from '../../types'; import { AVLTree, AVLTreeNode } from './avl-tree'; +import { IBinaryTree } from '../../interfaces'; export class AVLTreeMultiMapNode extends AVLTreeNode { /** @@ -54,14 +55,10 @@ export class AVLTreeMultiMapNode extends AVLTreeNode { /** * */ -export class AVLTreeMultiMap extends AVLTree< - K, - V[], - R, - MK, - MV, - MR -> { +export class AVLTreeMultiMap + extends AVLTree + implements IBinaryTree +{ /** * The constructor initializes an AVLTreeMultiMap with the provided keys, nodes, entries, or raw data * and options. diff --git a/src/data-structures/binary-tree/tree-multi-map.ts b/src/data-structures/binary-tree/tree-multi-map.ts index a73cbef..b0667af 100644 --- a/src/data-structures/binary-tree/tree-multi-map.ts +++ b/src/data-structures/binary-tree/tree-multi-map.ts @@ -7,6 +7,7 @@ */ import type { BTNOptKeyOrNull, BTNRep, OptNodeOrNull, TreeMultiMapOptions } from '../../types'; import { RedBlackTree, RedBlackTreeNode } from './red-black-tree'; +import { IBinaryTree } from '../../interfaces'; export class TreeMultiMapNode extends RedBlackTreeNode { /** @@ -60,14 +61,10 @@ export class TreeMultiMapNode extends RedBlackTreeNode * console.log(tmm.search(new Range(4, 12))); // [5, 10, 12, 7] * console.log(tmm.search(new Range(15, 20))); // [15, 18] */ -export class TreeMultiMap extends RedBlackTree< - K, - V[], - R, - MK, - MV, - MR -> { +export class TreeMultiMap + extends RedBlackTree + implements IBinaryTree +{ /** * The constructor initializes an TreeMultiMap with the provided keys, nodes, entries, or raw data * and options.