Skip to content

Latest commit

 

History

History

0x13-more_singly_linked_lists

Welcome to 0x13-more_singly_linked_lists.

FILE 0-print_listint.c - A function that prints all the elements of a listint_t list.

FILE 1-listint_len.c - A function that returns the number of elements in a linked listint_t list.

FILE 2-add_nodeint.c - a function that adds a new node at the beginning of a listint_t list.

FILE 3-add_nodeint_end.c - a function that adds a new node at the end of a listint_t list.

FILE 4-free_listint.c - a function that frees a listint_t list.

FILE 5-free_listint2.c - a function that frees a listint_t list.

FILE 6-pop_listint.c - a function that deletes the head node of a listint_t linked list, and returns the head node’s data (n).

FILE 7-get_nodeint.c - a function that returns the nth node of a listint_t linked list.

FILE 8-sum_listint.c - a function that returns the sum of all the data (n) of a listint_t linked list.

FILE 9-insert_nodeint.c - a function that inserts a new node at a given position.

FILE 10-delete_nodeint.c - a function that deletes the node at index index of a listint_t linked list.

FILE 100-reverse_listint.c - a function that reverses a listint_t linked list.

FILE 101-print_listint_safe.c - a function that prints a listint_t linked list.