Integer Search
Programming Interview
Questions
Integer Search
Given a sorted list of integers nums, your task is to return true if an integer target is within nums.
Input:
- nums: A sorted list of integers, where each element in the list is a unique integer.
- target: An integer target to be found within the list.
Output: True if the number is in the list, and False if the number is not in the list.
For optimal efficiency, your code must run in logarithmic time O(logn).
Tests - Login / Sign up to submit your code!
Efficiency
Test Case 1
Test Case 2
Test Case 3
Test Case 4
Test Case 5
Test Case 6
Test Case 7
Test Case 8
Test Case 9
Test Case 10
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results