-->
当前位置:首页 > 题库 > 正文内容

程序填空题:Insertion Sort

Luz4年前 (2021-08-19)题库843
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


发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。