Skip to content

Commit 2a017e6

Browse files
committed
bug fix
1 parent 9b5167f commit 2a017e6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Datastructure/Graph/Tree/BinarySearchTree.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ public static function createFromArrayWithMinimumHeight(?array $array): ?BinaryS
130130
if (0 === \count($array)) {
131131
return $tree;
132132
}
133-
$sort = new BubbleSort();
134-
$array = $sort->sort($array);
135133
$root = BinarySearchTree::_createFromArrayWithMinimumHeight($array, 0, \count($array) - 1);
136134
$tree = new BinarySearchTree();
137135
$tree->setRoot($root);

0 commit comments

Comments
 (0)