Home > Back-end >  Time complexity is how to calculate
Time complexity is how to calculate

Time:12-05

{
If (n<=1) return;

Sort (a, n - 1);

For (int j=n - 1; j> 0; J -)
If (a [1] & gt; A [j])
{
Int temp=a, [1].
1 a [j]=a, [j].
A [j]=temp;
}
}


The worst
  • Related