mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-01-29 20:34:27 +01:00
kill space
This commit is contained in:
parent
8b32ea1c24
commit
84b4964d8f
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
# Works only on sorted arrays.
|
||||
# Finding element by creating step in array and jump ahead by fixed steps and finding element using linear search inside that steped array.
|
||||
# Time Complexity : O(√n)
|
||||
# Time Complexity: O(√n)
|
||||
|
||||
def jump_search(arr, x)
|
||||
n = arr.length;
|
||||
|
|
Loading…
Add table
Reference in a new issue