Skip to content

Add removeTreeNode methods to AvlTree and BinarySearchTree #57

@masx200

Description

@masx200

Add removeTreeNode methods to AvlTree and BinarySearchTree

export class AvlTree<T> extends BinarySearchTree<T> {

https://github.com/datastructures-js/binary-search-tree/blob/master/src/avlTree.d.ts#L4

denoland/std#3055

A node can be removed from a binary tree with O(1) time complexity using the removeTreeNode method.

https://cplusplus.com/reference/set/set/erase/

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions