Skip to main content

trees

Project description

Treesp

This module helps you to perform operations on trees. The functions this module holds are

  • Insert
  • maxDepth
  • Indorder
  • Preorder
  • Postorder
  • Levelorder
  • Lowest common ancestor

Installation

pip install treesp

How to use it

we need to import module from treesp import treesp as tp

To create a bst:- You need to define a class which holds tree data structure then you can simply use insert function to insert the nodes tp.insert(j, 2)

To run other functions k = tp.inorder(j) Note:- the functions resturns a List

Github repository

https://github.com/sidharth0611

License

© 2021 Sidharth Parekh

This repository is licensed under the MIT license. See LICENSE for details.

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

treesp-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treesp-1.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file treesp-1.0.2.tar.gz.

File metadata

  • Download URL: treesp-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for treesp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 337a35806acaa21d79ba43e8a29c9e0d6dddc88307ed56e9860daef4cd557c2d
MD5 7d59e6ac4a58c5e752e7d7fcf2b60cc5
BLAKE2b-256 1414f96af59c9663564218d15fcfc9027dbf5d21d8a980905fb00ec7bd2a2543

See more details on using hashes here.

File details

Details for the file treesp-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: treesp-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for treesp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6d7e2d0a343c0f9107fd50ef479c1dbba5eff7f6199880793dc78f2d277b5e
MD5 c4d2ad38709f5d8f048e7eb35287d6bd
BLAKE2b-256 c9dc25d3a7d2f635edcc7958ec1f25a9518c1d56f54731fab3152f4699cef62d

See more details on using hashes here.

Supported by

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