You are viewing a single comment's thread. Return to all comments →
len() is constant time, but arr0[i0:] is copying the array first which is what slows things down
Seems like cookies are disabled on this browser, please enable them to open this website
Merge Sort: Counting Inversions
You are viewing a single comment's thread. Return to all comments →
len() is constant time, but arr0[i0:] is copying the array first which is what slows things down