Skip to content

Commit 2c5717f

Browse files
author
Fahham29
committed
Fix formatting and structure for Jump Search
1 parent ba7cb8f commit 2c5717f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/searches/JumpSearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static int jumpSearch(int[] arr, int target) {
1818

1919
while (arr[Math.min(step, n) - 1] < target) {
2020
prev = step;
21-
step += Math.floor(Math.sqrt(n));
21+
step += Math.floor(Math.sqrt(n));
2222
if (prev >= n)
2323
return -1;
2424
}

0 commit comments

Comments
 (0)