Skip to content

Commit 9a952bd

Browse files
committed
Improve formatting
1 parent 0de1181 commit 9a952bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

algorithms/Searching/jump_search.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
% -1 is returned if 'value' is not found in 'arr'.
99

1010
n = length(arr);
11-
11+
found_at = -1;
12+
1213
% 'm' holds the block size
1314
m = sqrt(n);
1415
m = round(m);
1516
low = 1;
1617
high = 1 + m;
1718

18-
found_at = -1;
19-
2019
while arr(min(high, n)) < value
2120
low = high;
2221
high = high + m;

0 commit comments

Comments
 (0)