Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Rakshit Raj
2020-12-02 23:27:05 +05:30
committed by GitHub
parent 9fc87ea2c5
commit 6929f5ce80

View File

@@ -202,7 +202,7 @@ static void test() {
// Test 2
std::vector<int> arr2 = {22, 66, 75, 23, 11, 87, 2, 44, 98, 43};
uint16_t size2 = arr2.size();
uint64_t inv_count2 = 20;
uint32_t inv_count2 = 20;
uint64_t result2 = sorting::inversion::countInversion(arr2.data(), size2);
assert(inv_count2 == result2);
// Test 3