mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-13 15:37:06 +08:00
Update sorting/count_inversions.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user