mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-07-10 19:16:54 +00:00
[PR #935] [CLOSED] feat: add reverse() function
#1466
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/935
Author: @ybrenning
Created: 1/17/2022
Status: ❌ Closed
Base:
master← Head:master📝 Commits (10+)
ce71a15feat: addreverse()function864b685docs: reformatting7bf010bfix: reformatting if-blocka0be01bfix: reformatting8d5c031Update data_structures/linked_list/doubly_linked_list.c302e440fix: rewritingdelete()function43f4203Merge branch 'master' of https://github.com/ybrenning/Cde46efeUpdate data_structures/linked_list/doubly_linked_list.cd89e017Update data_structures/linked_list/doubly_linked_list.cd6693b9Update data_structures/linked_list/doubly_linked_list.c📊 Changes
1 file changed (+141 additions, -168 deletions)
View changed files
📝
data_structures/linked_list/doubly_linked_list.c(+141 -168)📄 Description
Description of Change
Added implementation of a
reverse()function which takes a pointer to the head node of a doubly linked list and returns the linked list in reversed order. Also updated/added documentation and example use case in theexample()function.References
Closes #934
Checklist
Notes: Implementation of linked list reversal.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.