Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa327ed

Browse files
committed
cleanup
1 parent 8c40872 commit fa327ed

File tree

1 file changed

+1
-10
lines changed
  • src/_DataStructures_/Trees/BinarySearchTree

1 file changed

+1
-10
lines changed

‎src/_DataStructures_/Trees/BinarySearchTree/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable consistent-return */
21
const Node = require('./Node');
32
const BSTUtils = require('./utils');
43

@@ -50,15 +49,7 @@ class BinarySearchTree {
5049
}
5150

5251
// const bst = new BinarySearchTree(6);
53-
// console.log(bst.root);
54-
// bst.add(4);
55-
// bst.add(9);
56-
// bst.add(2);
57-
// bst.add(5);
58-
// bst.add(8);
59-
// bst.add(12);
60-
61-
// console.log(bst.root);
52+
// [4, 9, 2, 5, 8, 12].forEach(el => bst.add(el));
6253

6354
// const preorder = bst.preorder();
6455
// console.log('Preorder Traversal - ', preorder);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /