Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 298 Bytes

17.md

File metadata and controls

14 lines (13 loc) · 298 Bytes
int transitionPoint(int arr[], int n) {
    // code here
    //int flag=0;
    for(int i=0;i<n;i++)
    {
        if(arr[i]==1)
            return i;
    }
    return -1;
}