Skip to content

Commit

Permalink
refactor(data-structures): remove use of public keyword (#4983)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Jun 6, 2024
1 parent cb06f79 commit 32e1fce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data_structures/_binary_search_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ export type Direction = "left" | "right";
export class BinarySearchNode<T> {
left: BinarySearchNode<T> | null;
right: BinarySearchNode<T> | null;
constructor(public parent: BinarySearchNode<T> | null, public value: T) {
parent: BinarySearchNode<T> | null;
value: T;

constructor(parent: BinarySearchNode<T> | null, value: T) {
this.left = null;
this.right = null;
this.parent = parent;
this.value = value;
}

static from<T>(node: BinarySearchNode<T>): BinarySearchNode<T> {
Expand Down

0 comments on commit 32e1fce

Please sign in to comment.