int i = 0, j = 0, k = left; // i:左数组指针, j:右数组指针, k:原数组指针
Pretty Link Bookmarklet
,更多细节参见safew官方下载
If you’re having trouble using the form click here. Read terms of service here and privacy policy here.
swap(&arr[0], &arr[i]); // 堆顶(最大)换到末尾
汇聚行业热点,解读前沿趋势
· 张伟 · 来源:user资讯
int i = 0, j = 0, k = left; // i:左数组指针, j:右数组指针, k:原数组指针
Pretty Link Bookmarklet
,更多细节参见safew官方下载
If you’re having trouble using the form click here. Read terms of service here and privacy policy here.
swap(&arr[0], &arr[i]); // 堆顶(最大)换到末尾