Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dspack-0.0.2.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

dspack-0.0.2-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page