Skip to content

Commit a67b5bb

Browse files
committed
modified treap class for syntax error
1 parent ab99449 commit a67b5bb

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class Treap {
1414

15-
static class TreapNode {
15+
public static class TreapNode {
1616
/**
1717
* TreapNode class defines the individual nodes in the Treap
1818
*
@@ -66,10 +66,6 @@ public Treap() {
6666
root = null;
6767
}
6868

69-
public Treap(int[] nodeValues) {
70-
for (int nodeValue : nodeValues) insert(nodeValue);
71-
}
72-
7369
/**
7470
* merges two Treaps left and right into a single Treap
7571
*

0 commit comments

Comments
 (0)