Hello Seem to be a hardest word

Just another WordPress.com weblog

Exchange Sort

O(n) – O(n2)

void ExchangeSort(int arr[],int n)
{
for(int i=0;i<n-1;i++)
for(int j=i+1;j<n;j++)
if(comparer(arr[i],arr[j]))
swap(arr[i],arr[j]);
}

Tháng Sáu 20, 2008 - Đăng bởi fate | Sort Algorithm | | No Comments Yet

Chưa có phản hồi.

Để lại phản hồi

Bạn phải đăng nhập để gửi phản hồi