Given a list numList of n elements and key value K, arrange the following steps for finding the position of the key K in the numList using the binary search algorithm i.e. BinarySearch(numList, key).
mid = (first + last) // 2first = 0, last = n - 1first <= last REPEATnumList[mid] = key, numList[mid] > key, THEN last = mid - 1first = mid + 1Identify the part of the sentence that contains a grammatical error:
Each of the boys have submitted their assignment on time.
Rearrange the following parts to form a meaningful and grammatically correct sentence:
P. a healthy diet and regular exercise
Q. are important habits
R. that help maintain good physical and mental health
S. especially in today's busy world