This repository contains an implementation of a linked list in C, including common operations such as insertion, deletion, traversal, and accessing the top element.
- Insert elements at the beginning, end, or a specific position.
- Delete elements from the beginning, end, or a specific position.
- Traverse the linked list and display elements.
- Get the top (head) element of the linked list.
insert.c
- Code for inserting elements into the linked list.delete.c
- Code for deleting elements from the linked list.traverse.c
- Code for traversing and displaying elements.top.c
- Code for getting the top element.linked_list.h
- Header file containing function declarations.main.c
- Example usage of the linked list operations.
Feel free to fork this repository, create a new branch, and submit pull requests for improvements.
This project is open-source and available under the MIT License.