C#冒泡法排序代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

public static void BubbleSort (int[] list)
{
    for (int i = 0; i < list.Length; i++)
    {
        for (int j = 0; j < list.Length - i - 1; j++)
        {
            if(list [j] > list [j + 1])
            {
                int Temp = list [j];
                list [j] = list [j + 1];
                list [j + 1] = Temp;
            }
        }
    }
}