mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #1509] [CLOSED] Feat/Sorting a singly linked list using C language #2113
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1509
Author: @Nihhaar0002
Created: 10/23/2025
Status: ❌ Closed
Base:
master← Head:feat/sorting-linked-list📝 Commits (3)
9ca6b1bAdd doubly linked list implementation in C6cd7e7eCircular linked list implementation in C91806b7Add linked list with sorting and utility functions in C📊 Changes
3 files changed (+561 additions, -0 deletions)
View changed files
➕
data_structures/circular_linked_list.c(+222 -0)➕
data_structures/doubly_linked_list.c(+32 -0)➕
data_structures/sorting_linked_list.c(+307 -0)📄 Description
This contribution adds a complete singly linked list implementation in C with useful operations:
Insert a node at the beginning, at a specific position, or at the end.
Delete a node from the beginning, from a specific position, or from the end.
Display the list, search for a value, and find maximum and minimum elements.
Sort the list in ascending order.
Reverse the list.
Count the total number of nodes.
The code is organized under the
data_structures/folder and follows a clear structure for easy understanding and reuse.This implementation will help beginners understand linked list operations and provides a reference for common linked list algorithms in C.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.