Time complexity of an algorithm with two loops and two recursive calls
问题 Here is an algorithm of sorting an array with two recursive calls.I have tried to calculate its time complexity roughly but not sure.I know that two for loops will take n+n times but what to do with recursive calls and how can i calculate them? Any one can help in calculating in simple mathematical way. MySort (a[1..n] , n) { If (n <= 2) { If (first element > second) && (n = 2) then do { Interchange a[1] & a[2]; } End if } Else { Assign value to min and max by very first element of array. for