Hi I need help ASAP!!!! pleasee help I got thiscode that counts the number of occurences of a number in a sortedlist.Please help MODIFY this code to return the smallest INDEX andthe largest Index in which this word appear. For example, for ‘act’in this array
arr = [[‘act’, ‘act’], [‘cat’, ‘act’], [‘tac’, ‘act’], [‘bad’,’abd’], [‘fad’, ‘adf’]]
it returns index 0 and 2.This is the current code:
# if x is present in arr[] then return
# the index of FIRST occurrence of x in
# arr[0..n-1], otherwise returns -1
def first(arr, low, high, x, n):
if high >= low:
# low + (high -low)/2
mid =
PayPal Gateway not configured
PayPal Gateway not configured