AIBauchi / PyDS-A

PyDS-A: Python Data Structures and Algorithms Library - Your go-to resource for essential data structures and algorithms, implemented in Python. Improve your coding skills and optimize your programs with this comprehensive collection.
MIT License
8 stars 12 forks source link

Implement Singly Linked List #44

Closed Racso-3141 closed 1 year ago

Racso-3141 commented 1 year ago

Implement Singly Linked List

Description

I implement Singly LinkedList class in singly_linked_list.py. The Singly Linked List has head, tail, and size. So add at start and end can be achieved and retrieving in constant time. I implement delete_first, delete_all, find_first, find_all.

Related Issue

Closes: #33

Testing

python3 -m doctest -v linked_list.py and pass all tests.

Author

Enxu Han (@Racso-3141 )