Skip to content

Commit 5d9eb00

Browse files
author
Fahham29
committed
Fix formatting, structure, and docstring for Jump Search
1 parent 89a050f commit 5d9eb00

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/search/JumpSearch.java renamed to src/searching/JumpSearch.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
package search;
1+
package searching;
2+
3+
/**
4+
* Implementation of Jump Search algorithm.
5+
*
6+
* Time Complexity: O(√n)
7+
* Space Complexity: O(1)
8+
*
9+
* Reference: https://en.wikipedia.org/wiki/Jump_search
10+
*/
211

312
public class JumpSearch {
413

0 commit comments

Comments
 (0)