Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pylinkedlist

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pylinkedlist

A Python package to work with LinkedList.

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

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)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc