
排序
Reast1nPeace
NUC acm/icpc
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
插入排序 Insertion Sort Aizu - ALDS1_1_A
题目: Write a program of the Insertion Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode: for i = 1 to A.length-1 key = A[i]原创 2018-01-19 13:27:53 · 401 阅读 · 0 评论 -
冒泡排序 Bubble Sort Aizu - ALDS1_2_A
题目: Write a program of the Bubble Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode: BubbleSort(A) 1 for i = 0 to A.length-1 2原创 2018-01-19 14:16:53 · 421 阅读 · 0 评论 -
选择排序 Selection Sort Aizu - ALDS1_2_B
题目: Write a program of the Selection Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode: SelectionSort(A) 1 for i = 0 to A.leng原创 2018-01-19 14:28:20 · 430 阅读 · 0 评论