Skip to main content

A simple package for linked lists

Project description

Linked Lists Python Module

Overview

The listslinked Python Module provides implementations for various types of linked lists in Python. Linked lists are fundamental data structures commonly used in computer science and programming.

This module includes implementations for the following types of linked lists:

  • Singly Linked List
  • Doubly Linked List
  • Circular Singly Linked List
  • Circular Doubly Linked List

Each type of linked list offers different capabilities and can be used for various applications.

Installation

You can install the module using pip:

pip install listslinked

Usage

To use the linked lists in your Python code, import the desired type of linked list from the module. For example, to use the Singly Linked List:

from listslinked import SinglyLinkedList

# Create a new singly linked list
linked_list = SinglyLinkedList()

# Insert elements
linked_list.insert_at_beginning(5)
linked_list.insert_at_end(10)

# Print the linked list
current = linked_list.get_head()
while current:
    print(current.data)
    current = current.next

Similarly, you can use the other types of linked lists provided by the module.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

listslinked-0.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

listslinked-0.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file listslinked-0.0.2.tar.gz.

File metadata

  • Download URL: listslinked-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for listslinked-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b0560db526d8a2c10e75639228d93ec9493a4fef209c9792b7abce9d0e114b16
MD5 a73e776dca4d2f2965afe62a01c24830
BLAKE2b-256 8646eff9b33c5298ca3e75ca3733c43b071dd39d0ef49715d3e4bda6c3c6e7cb

See more details on using hashes here.

File details

Details for the file listslinked-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: listslinked-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for listslinked-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 916e1dc23de852524312567a1cd986e8ec93572fb185fe1711367e28bcd5366b
MD5 e6a9789daf58ce91ec674de4a5881daf
BLAKE2b-256 218e814ac4f573a125382463b6c945a43ea21b2eec68b286aaee058d9d67a6f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page