Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeSortWithInversions ¶
MergeSortWithInversions returns the sorted array (using MergeSort), and the number of inversions it finds in an []int Example: [1, 5, 2, 4, 3], would have the following inversions: (5, 2), (5, 4), (5, 3), (4, 3), and hence return 4.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.