using custom swap instead of std::swap

This commit is contained in:
incredibleLeitman 2020-10-17 23:16:42 +02:00
parent e22eee97da
commit c30264257a

View File

@ -17,7 +17,7 @@ uint32_t getWirthKthSmallest(std::vector<uint32_t> a, uint32_t k)
while (x < a[j]) j--;
if (i <= j) {
std::swap(a[i], a[j]);
swap(&a[i], &a[j]);
i++;
j--;
}