Merge Sort1 Merge Sort: Counting Inversions def merge(counter, sourceArr, tempArr, start, mid, end): leftIndex = start rightIndex = mid + 1 targetIndex = start for i in range(start, end+1): tempArr[i] = sourceArr[i] while leftIndex 2019. 5. 11. 이전 1 다음