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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for pylinkedlist-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0078b99ec946ceb2f708ad7893e354f3972795626942b6a3cfc11b468079cde3 |
|
MD5 | 3318ca721bdc05ecda56115707efbbf4 |
|
BLAKE2b-256 | 0b30aec6de30e8b040907ac87a523ca0911e89f909b3db849e59b7695274d89a |