Skip to content

Conversation

spirosmaggioros
Copy link
Contributor

Implementation of Doubly Linked List

The already implemented doubly linked list is just a struct and doesn't help too much. This PR includes a complete implementation with a lot of methods that will help users a lot more.

Methods

  • Implemented core functions for the list: push_back, push_front, pop_front, pop_back, empty, search, remove, printList, and destroy.

Also this PR includes all the unit tests for the functions.

@kassane kassane merged commit e68f833 into TheAlgorithms:main Jan 2, 2025
5 checks passed
@kassane
Copy link
Member

kassane commented Jan 2, 2025

@spirosmaggioros

Tip

The implementation is ok.
However, when adding new algorithms, please do not forget to build.zig and runall.[sh|cmd].
Otherwise there will be no execution during CI tests.

@spirosmaggioros
Copy link
Contributor Author

I read the CONTRIBUTION.md and it said that i have to open a PR first and then if a maintainer approves it i will have to add it to the zig build. I will do it starting from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants