Skip to main content

A Python package to work with LinkedList.

Project description

Python-LinkedList

Linkedlist data structure to work with python.

Installation

pip install pylinkedlist

Uninstallation

pip uninstall pylinkedlist

Importing Package

import pylinkedlist as llist

Initializing A LinkedList

Initialize a variable var with Linkedlist data structure.

var = llist.LinkedList()

Adding Element in the LinkedList

Appending at the end

Add element[s] at the end of linkedlist

# x can be a list or single elememnt
var.add(x)

Adding in the front

Add element[s] at the front of linkedlist

# x can be a list or single elememnt
var.addleft(x)

Count of Nodes in the LinkedList

count = var.getcount()

Reference of Node in the LinkedList

count = var.getnode()

Find Middle Element in the LinkedList

count = var.getmid()

Delete A Node From LinkedList

count = var.delete_from_mid(x)

Insert At Mid

var.insert_at_mid(x)

Element at Given Position

element = var.at(x)

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

pylinkedlist-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

pylinkedlist-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pylinkedlist-0.1.0.tar.gz.

File metadata

  • Download URL: pylinkedlist-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for pylinkedlist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aead696e9b6f0782ae3754c670510b6daa8dc420996294cbe07a5009fba8cf40
MD5 f1e294423fab1fce4f9c2a2e8721820d
BLAKE2b-256 bb9bd66838c72664ada58105b88123be104fff5c5b6173e41b977e719c26b351

See more details on using hashes here.

File details

Details for the file pylinkedlist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pylinkedlist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for pylinkedlist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0078b99ec946ceb2f708ad7893e354f3972795626942b6a3cfc11b468079cde3
MD5 3318ca721bdc05ecda56115707efbbf4
BLAKE2b-256 0b30aec6de30e8b040907ac87a523ca0911e89f909b3db849e59b7695274d89a

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