Socket
Socket
Sign inDemoInstall

ohmyds

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ohmyds

Python library to visualize data strcutures


Maintainers
1

Readme

oh-my-ds

Python library to pretty print data structures

Installation

pip3 install ohmyds

Usage

Right now only binary tree is supported


from ohmyds import binary_tree

root = binary_tree.create_tree([1,2,3,4,None,5,None,6,7,8])

For binary tree, you can do two operations right now - level order traversal and print

print(root)

The above command will print binary tree in a beautiful way (beauty is in the eyes of the beholder!)

 _1    
/  \   
3  2_  
 \   \ 
 5   4 
    / \
    7 6

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc