Skip to content

Commit 5fb73ea

Browse files
committed
Added Treap class and test for the same
1 parent 9226300 commit 5fb73ea

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/thealgorithms/datastructures/trees

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/datastructures/trees/Treap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private TreapNode searchVal(TreapNode root, int value) {
240240

241241
if (root.value == value)
242242
return root;
243-
else if(root.value < value)
243+
else if (root.value < value)
244244
return searchVal(root.right, value);
245245
else
246246
return searchVal(root.left, value);

0 commit comments

Comments
 (0)