MCPcopy Create free account
hub / github.com/denoland/std / directionFromParent

Method directionFromParent

data_structures/_binary_search_node.ts:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 directionFromParent(): Direction | null {
30 return this.parent === null
31 ? null
32 : this === this.parent.left
33 ? "left"
34 : this === this.parent.right
35 ? "right"
36 : null;
37 }
38
39 findMinNode(): BinarySearchNode<T> {
40 let minNode: BinarySearchNode<T> | null = this.left;

Callers 4

findSuccessorNodeMethod · 0.95
#removeNodeMethod · 0.80
insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected