You are viewing a single comment's thread. Return to all comments →
def introTutorial(V, arr): # Write your code here start = 0 end = len(arr) - 1 while start <= end: mid = (start + end) // 2 if arr[mid] == V: return mid elif arr[mid] > V: end = mid - 1 else: start = mid + 1 return -1
Seems like cookies are disabled on this browser, please enable them to open this website
Intro to Tutorial Challenges
You are viewing a single comment's thread. Return to all comments →