A mistake that many persons may ingore


  • 0
    Y

    We need to know the process of insertion sort clearly.I found some solutions were wrong.When we process A[i],we need to insert A[i] between A[0] to A[i-1],not A[0] to A[A.length-1].


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.