Skip to content

插入排序插入描述逻辑说反了 #337

Description

@sunbin998
Image

应该是:

“从右到左遍历有序区间中的元素,将比 nums[2] 大的元素 向后移动 1 位;
遇到 小于或者等于 nums[2] 的元素时,说明找到了插入位置,将 nums[2] 插入到该位置。”

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions