mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-27 21:58:57 +01:00
Update Searches/jump_search.rb
This commit is contained in:
parent
c3b26bed0a
commit
8b32ea1c24
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
# 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)
|
||||
|
||||
def jumpsearch(arr, x)
|
||||
def jump_search(arr, x)
|
||||
n = arr.length;
|
||||
|
||||
# Finding block size to be jumped
|
||||
|
|
Loading…
Reference in a new issue