E: 无法获得锁 /var/lib/dpkg/lock-frontend - open
终端输入:sudo rm /var/lib/dpkg/lock然后重启ubuntu系统
二分插入排序(折半插入排序)
二分插入排序(又称折半插入排序),与直接插入法的区别是在有序数列中检索插入位置时采用二分法进行搜索#include #include #define SWAP(x,y,t) t=x;x=y;y=t;void print(int arr[],int n) { for (int i = 0; i n; i++) { printf("%6d", arr