Interview-code-practice-python icon indicating copy to clipboard operation
Interview-code-practice-python copied to clipboard

插入排序算法一个小错误

Open github-Rogerliu opened this issue 7 years ago • 0 comments

https://github.com/leeguandong/Interview-code-practice-python/blob/86933f82f3553dfca16055977d7366b106b511bd/%E6%9C%BA%E8%AF%95%E9%A2%98/%E6%8E%92%E5%BA%8F.py#L50 while循环结束后,找到的j是x[i]值的插入点,所以应该将i值赋值给j,x[j]=x[i]

github-Rogerliu avatar Apr 12 '19 03:04 github-Rogerliu