0

In CPP-->>

void sorted(int arr[], int size)
{
sorted(arr+1, size-1);  //----->> in cpp we can pass next pointer address with the help of + operator
}

But in python how can we do this

def sorted(arr, size):
    sorted(arr+1 , size-1) #--->> arr+1 is not working in python
001
  • 13,291
  • 5
  • 35
  • 66

0 Answers0