Skip to content

插入排序算法一个小错误 #4

Description

@github-Rogerliu


while循环结束后,找到的j是x[i]值的插入点,所以应该将i值赋值给j,x[j]=x[i]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions