We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 014bfda commit ecfd0f0Copy full SHA for ecfd0f0
Searches/src/search/IterativeTernarySearch.java
@@ -62,7 +62,10 @@ public static void main(String[] args) {
62
Random r = new Random();
63
int size = 100;
64
int maxElement = 100000;
65
- Integer[] integers = Stream.generate(() -> r.nextInt(maxElement)).limit(size).sorted().toArray(Integer[]::new);
+ Integer[] integers = Stream.generate(() -> r.nextInt(maxElement))
66
+ .limit(size)
67
+ .sorted()
68
+ .toArray(Integer[]::new);
69
70
71
//the element that should be found
0 commit comments