Implement jump search to find an element in a sorted list efficiently.
Constraints
Example
>>> jump_search([1, 3, 5, 7, 9], 5) 2 >>> jump_search([1, 3, 5, 7, 9], 6) -1 >>> jump_search([], 10) -1 >>> jump_search([10], 10) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints