We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab99449 commit a67b5bbCopy full SHA for a67b5bb
src/main/java/com/thealgorithms/datastructures/trees/Treap.java
@@ -12,7 +12,7 @@
12
13
public class Treap {
14
15
- static class TreapNode {
+ public static class TreapNode {
16
/**
17
* TreapNode class defines the individual nodes in the Treap
18
*
@@ -66,10 +66,6 @@ public Treap() {
66
root = null;
67
}
68
69
- public Treap(int[] nodeValues) {
70
- for (int nodeValue : nodeValues) insert(nodeValue);
71
- }
72
-
73
74
* merges two Treaps left and right into a single Treap
75
0 commit comments