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 ba7cb8f commit 2c5717fCopy full SHA for 2c5717f
src/main/java/com/thealgorithms/searches/JumpSearch.java
@@ -18,7 +18,7 @@ public static int jumpSearch(int[] arr, int target) {
18
19
while (arr[Math.min(step, n) - 1] < target) {
20
prev = step;
21
- step += Math.floor(Math.sqrt(n));
+ step += Math.floor(Math.sqrt(n));
22
if (prev >= n)
23
return -1;
24
}
0 commit comments