Update Searches/jump_search.rb

This commit is contained in:
Vitor Oliveira 2021-02-06 22:48:35 -08:00 committed by GitHub
parent c3b26bed0a
commit 8b32ea1c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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