Insertion Sort Advanced Analysis

  • + 1 comment

    In case if input array is sorted (or partially sorted), generic binary tree solution will give you O(N^2) instead of O(N log N).