Im trying to learn the Best Case, Average case, and Worse case Data. I kinda understand them and I kinda don't.
Example:
Would the Worse case be n^2 number of steps?Code:for(i = 1; i<n, i++)
for(j=0; j<n-1; j++)
if(A[j] > A[i]
{Switch = A[j];
A[j] = A[j+1];
A[j+1] = Switch;
}