Just swapping them, right? I temporarily hold on to what's in the i'th element so I can move the i plus first one in, and then replace that with the i'th element.
交换他们,对么?,临时的保存下第i个元素,然后把第i+1个元素移进来,把i+1的位置替换为第i个元素。
麻省理工公开课 - 计算机科学及编程导论课程节选
应用推荐
模块上移
模块下移
不移动