导航
班级管理 学习中心 题单 编程题 宠物 做题转盘 私信 我的笔记 积分管理 权限管理

📝 ### 第11题 下面代码实现插入排序,横线处应填写( )。 ```cpp void insertionSort(int arr[], int n) { for (int i = 1; i < n; i++) …

📂 C++  ·  ⚡ 难度 4  ·  ❓ 单选题  ·  📖 GESP C++ 四级 考前模拟卷(1)
🏷️ GESP四级,指针,引用,结构体,二维数组,排序,递推,复杂度
📖 GESP C++ 四级 考前模拟卷(1)

### 第11题

下面代码实现插入排序,横线处应填写( )。

```cpp
void insertionSort(int arr[], int n) {
for (int i = 1; i < n; i++) {
int key = arr[i];
int j = i - 1;
while (j >= 0 && ______) {
arr[j + 1] = arr[j];
j--;
}
arr[j + 1] = key;
}
}
```

🐛 反馈BUG