From d54a285f8d204dd226108af76061c9610b5d9f2b Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 2 Dec 2020 23:27:21 +0530 Subject: [PATCH] Update sorting/count_inversions.cpp Co-authored-by: David Leal --- sorting/count_inversions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting/count_inversions.cpp b/sorting/count_inversions.cpp index fb8aa9eb8..6a273cf47 100644 --- a/sorting/count_inversions.cpp +++ b/sorting/count_inversions.cpp @@ -156,7 +156,7 @@ uint64_t mergeSort(T* arr, T* temp, uint64_t left, uint64_t right) { * @returns number of inversions in input array, sorts the array */ template -int countInversion(T* arr, const uint64_t size) { +uint32_t countInversion(T* arr, const uint16_t size) { std::vector temp; temp.reserve(size); temp.assign(size, 0);