Python Package of datastructures inbuilt
Project description
Python Package with several DataStrucutes implemented
#from ds.sll import * #from ds.dll import * #from ds.graph import * #from ds.avl import * #from ds.trie import * #from ds.segmenttree import * #from ds.inset import * #from ds.treeset import * #from ds.avl import *
To find about the implementation of datastructure you can use help commands
#help(avl) #help(graph) #help(bst) #help(binarytree) #help(inset) #help(segmentree) #help(trie) #help(sll) #help(dll) #help(treeset) #help(redblacktree)
Sample implementaion of the Doubly Linked List Data Structure
#arr = [i for i in range(7)] #dll = dll(arr) you can also declare a null dll #print(dll) #dll.add(7) #dll.add(9,1) add(index = 0 by default,val) #print(dll) #dll.remove(9) dll.remove(val) #a = dll.getNode(6) gets pointer to the node #print(a.data) #print(len(dll)) #print(dll)
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.