mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-15 08:26:06 +00:00
build
This commit is contained in:
@@ -2034,7 +2034,7 @@ comments: true
|
||||
panic!("索引越界")
|
||||
};
|
||||
let num = self.arr[index];
|
||||
// 將將索引 index 之後的元素都向前移動一位
|
||||
// 將索引 index 之後的元素都向前移動一位
|
||||
for j in index..self.size - 1 {
|
||||
self.arr[j] = self.arr[j + 1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user