-->
当前位置:首页 > 题库

程序填空题:Insertion Sort

Luz5年前 (2021-08-19)题库914
The function is to sort `N` elements in non-decreasing order by Insertion Sort.

```c++
void InsertionSort( ElementType A[ ], int N ) 
{
    int P, i;
    ElementType Tmp;
     
    for ( P=1; P
答案: 第1空:i>0 && A[i-1]>Tmp 第2空:A[i] = Tmp