
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
This code is a Python implementation of a doubly linked list. I needed it for a very narrow scope, so the functionality might not have what you're looking for. If you'd like a feature added, please email AWNystrom@gmail.com
INSTALLATION To instal, run the following command: python setup.py install
TESTING To run unit tests, run the following command: python doubly_linked_list/test_doubly_linked_list.py
USAGE Here's some example usage:
from doubly_linked_list import DoublyLinkedList dll = DoublyLinkedList(range(10)) print dll [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] dll.moveToHead(dll.tail) print dll [9, 0, 1, 2, 3, 4, 5, 6, 7, 8] dll.removeHead() print dll [0, 1, 2, 3, 4, 5, 6, 7, 8] from random import shuffle shuffle(dll) print dll [1, 4, 0, 2, 6, 3, 5, 7, 8] dll.moveToHead(dll.getNodeByIndex(4)) print dll [6, 1, 4, 0, 2, 3, 5, 7, 8]
FAQs
Doubly linked list datastructure in Python
We found that doubly_linked_list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.