快速排序方法 by zhouwillpower
摘要:
using System;
namespace QuickSorter
{
public class QuickSorter
{
private void Swap(ref int l,ref int r)
{
int s;
s=l;
l=r;
r=s;
}
public void Sort(int [] list,int low,int high)
{
int pivot;
int l,r;
int mid;
if(high return;
else if(high==low+1)
{
if(list[low]list[high])
Swap(ref list[low],ref list[high]);
阅读全文
posted @ 2006-07-19 16:10
zhouwillpower
阅读(404)
评论(0)
推荐(0)
浙公网安备 33010602011771号