0x13. C - More singly linked lists;ALX: 10. Delete at index

preview_player
Показать описание
Write a function that deletes the node at index index of a listint_t linked list.

Prototype: int delete_nodeint_at_index(listint_t **head, unsigned int index);
where index is the index of the node that should be deleted. Index starts at 0
Returns: 1 if it succeeded, -1 if it failed

All 0x13. C - More singly linked lists videos

0. Print list
1. List length
2. Add node
3. Add node at the end
4. Free list
5. Free
6. Pop
7. Get node at index
8. Sum list
9. Insert
10. Delete at index
11. Reverse list
Рекомендации по теме