The data_structures3x is a python package with 3 of the most basic data structures. The package would keep updating as python itself updates to higher versions.
It contains the following data structures:
- Binary Tree
- Linked List
- Hashmap
If not already, install pip
Install the package with pip or pip3:
pip install data-structures3xSee more examples at My Docs
from dt_structures3x.linkedlist import Item
# linked list
root = Item(10)
root.appendChild(Item(17), Item(19))
root.display()Output:
10 -> 17 -> 19