(C#)冒泡排序 Bubble Sort
来源:互联网 发布:电脑用手机网络 编辑:程序博客网 时间:2024/06/05 11:39
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Sort{ class Bubble { public static void BubbleSort(List<int> list) { int tmp; for (int i = 0; i < list.Count; ++i) { for (int j = list.Count - 1; j > i; --j) { if (list[j - 1] > list[j]) { tmp = list[j - 1]; list[j - 1] = list[j]; list[j] = tmp; } } } } //public static void BubbleSort(List<int> list) //{ // int tmp; // for (int i = 0; i < list.Count; ++i) // { // for (int j = 0; j < list.Count - i - 1; ++j) // { // if (list[j] > list[j + 1]) // { // tmp = list[j + 1]; // list[j + 1] = list[j]; // list[j] = tmp; // } // } // } //} }}
- (C#)冒泡排序 Bubble Sort
- Bubble Sort (冒泡排序 C++)
- Bubble Sort in C#(冒泡排序算法)
- 冒泡排序(bubble sort)
- Bubble Sort 冒泡排序
- 冒泡排序(Bubble Sort)
- 冒泡排序 Bubble Sort
- 冒泡排序(Bubble Sort)
- [冒泡排序]Bubble Sort
- 冒泡排序(Bubble Sort)
- 冒泡排序Bubble sort
- 冒泡排序 (Bubble Sort)
- Bubble Sort 冒泡排序
- 冒泡排序(Bubble Sort)
- 冒泡排序Bubble sort
- 冒泡排序 Bubble Sort
- 冒泡排序 Bubble Sort
- 冒泡排序 Bubble Sort
- 11 01 05 事情做不完
- (C#)排序算法 Sort Algorithm
- Link Building Tip – Make the Most of What You Have
- 像Youtube一样的flv视频网站制作 使用Flex和PHP创建自己的视频应用
- Windows主机端与自定义USB HID设备通信详解
- (C#)冒泡排序 Bubble Sort
- Exception日志
- 写写自己的vector
- (C#)选择排序 Selection Sort
- C++对象模型笔记(一) C++对象
- (C#)插入排序 Insertion Sort
- GetMessage与PeekMessage的区别
- 人工智能学习
- (C#)快速排序 Quicksort