📝 ### 第11题 下面代码实现插入排序,横线处应填写( )。 ```cpp void insertionSort(int arr[], int n) { for (int i = 1; i < n; i++) …
📂 C++
· ⚡ 难度 4
· ❓ 单选题
· 📖 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;
}
}
```