summaryrefslogtreecommitdiff
path: root/progs/a26.py
blob: 9a4a36f397321eae9450dfe3fc47cd7b40b99356 (plain)
1
2
3
4
5
6
7
8
9
def find_First_Missing(array,start,end): 
    if (start > end): 
        return end + 1
    if (start != array[start]): 
        return start; 
    mid = int((start + end) / 2) 
    if (array[mid] == mid): 
        return find_First_Missing(array,mid+1,end) 
    return find_First_Missing(array,start,mid)