mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-04 03:34:21 +00:00
Publish the C codes to the docs. (#469)
This commit is contained in:
@@ -42,6 +42,7 @@ void insert(int *nums, int size, int num, int index) {
|
||||
}
|
||||
|
||||
/* 删除索引 index 处元素 */
|
||||
// 注意:stdio.h 占用了 remove 关键词
|
||||
void removeItem(int *nums, int size, int index) {
|
||||
// 把索引 index 之后的所有元素向前移动一位
|
||||
for (int i = index; i < size - 1; i++) {
|
||||
|
||||
Reference in New Issue
Block a user