Assume that A is an array of size n of distinct elements
Minimum number of inversions - instance
Maximum number of inversions - instance
Complexity (worst case number of comparisons) of the brute force counting on A
Complexity (worst case number of comparisons) of the divide an conquer (mergesort) counting on A
Run in your local machine the brute force and divide and conquer algorithms in Python 2.7 and calculate the time for the first 10^5 numbers of size instance from Hackearth input and output and for the 10^5 sorted increasing and decreasing numbers.
Run your local machine the brute force and divide and conquer algorithms in C or C++ calculate the time for tthe first 10^5 numbers of size instance from Hackearth input and output and for the 10^5 sorted increasing and decreasing numbers.