Skip to main content

Binary_tree is a simple package to create sort and search data with binary trees.

Project description

Binary_tree


Binary_tree is a simple package to create sort and search data with binary trees.

##install


pip install --upgrade binary_tree

usage


  • To create a tree use the tree object
  • Get a sorted array using the tree traverse function
  • Search an item (True/False) via the tree search function

####example

import binary_tree as bt
tree1 = bt.tree([1, 6, 3, 9])
print(tree1.traverse())

# returns [1, 3, 6, 9]
print(tree1.search(6))

#returns True

#####credits Creator: Ofri Kirshen

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

binary_tree-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

binary_tree-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file binary_tree-0.0.1.tar.gz.

File metadata

  • Download URL: binary_tree-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for binary_tree-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2e40f8a2f24dec1fd2ca0788eefc42da2746d97fa7986c6234eff8a550509467
MD5 3129ca58f0de157c71e2ea62c5f13d47
BLAKE2b-256 e772df9f5789b2ef6d6d03c71d87996a92bce87e69c0f005b6ac72b1d3fc92bf

See more details on using hashes here.

File details

Details for the file binary_tree-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: binary_tree-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for binary_tree-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41e58423e478bcbcbd3fd70b51b0d2c5f7b782b82e44001b51f6f3164264d857
MD5 7867f38c223540a700db7678d3faa580
BLAKE2b-256 2a0cb80516d7040392dee8a8efc8ab9041f72905f923f6530c52f6028b71487b

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