快速排序(hoare法,刨坑法,前后指针法)及非递归实现
单趟排序:将比key小和相等的放在左边,将比key大和相等的放到右边单趟排序的变形1.hoare法,2.刨坑法,3.前后指针法。hoare法最右边做key,左边先走;左边做key,右边先走。void Swap(int *a, int *b){ int tmp = *a; *a = *b; *b = tmp;}int HoareSort(int *a, int b...