排序
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 · 339 阅读 · 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-12原创 2018-01-19 14:16:53 · 353 阅读 · 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 · 331 阅读 · 0 评论