Skip to main content

Data structure for Segment Tree

Project description

Data structure for Segment Tree.

Use 'pip' or 'easy_install' to install the package.

sudo pip install segmenttreenode
sudo easy_install segmenttreenode

In Python File:
from segmenttreenode import SegmentTreeNode
arr = [1, 3, 5, 7, 9, 11]
root = SegmentTreeNode.SegmentTreeNode(arr, 0, len(arr) - 1)
# Use this segment tree through the root.
# ... ...

There are three necessary arguments to
initialize a segment tree node instance from SegmetTreeNode class.

[1] one dimensional list
[2] start index
[3] end index

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
segmenttreenode-0.0.1-py2.7.egg (3.5 kB) Copy SHA256 hash SHA256 Egg 2.7
segmenttreenode-0.0.1.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page