Skip to content

jimtkirk21/Linked-Lists-Python

Repository files navigation

Linked_Lists_Python

LinkedList Python Project A simple, clear, and robust implementation of a singly linked list in Python. Includes methods for adding, removing, searching, partitioning, reversing, and other linked list operations — all fully tested with multiple scenarios!

eatures Encapsulated LinkedList and _Node classes with @property accessors

Methods:

append, prepend, pop, pop_first

get, set_value, find_middle_node, find_kth_from_end

has_loop, remove_duplicates, binary_to_decimal

partition_list, reverse_between, swap_pairs

Extensive test coverage using test_helpers.py:

Validates all methods with edge cases

Uses helper functions like check() and linkedlist_to_list()

Project Structure . ├── linked_list.py # LinkedList and Node classes ├── test_helpers.py # Helper functions for testing ├── test_linked_lists.py # Runs tests for all LinkedList methods ├── LICENSE # MIT License └── README.md # This file

How to Run Tests Clone this repository: git clone https://github.com/jimtkirk21/Linked_lists_Python.git cd your-repo-name

Run all tests: python3 test_linked_lists.py

License This project is licensed under the MIT License. See LICENSE for details.

Author Made with ❤️ by Adam Bulenda

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages