Given an array A, count the total number of possible inversions. If there indices i and j such that i > j and A[i] < A[j], then there is a possible inversion.
May I add the solution to this problem, using Divide and Conquer method? Should I create a new folder named Divide and Conquer? Or should I add this code to Array folder?
Description
Given an array A, count the total number of possible inversions. If there indices i and j such that i > j and A[i] < A[j], then there is a possible inversion. May I add the solution to this problem, using Divide and Conquer method? Should I create a new folder named Divide and Conquer? Or should I add this code to Array folder?