Skip to main content

Tree Deserializer and Visualizer for Python

Project description

VizTreeTraversal

LeetCode Describes Deserialize & Draw here

Often, LeetCode problems require a slight learning curve to feel comfortable using their TreeNode data structure. One helpful portion of the LeetCode website describes a detailed example. Have a look at the linked content here

Using the product

To install, use pip3 and the command land as follows:

pip3 install viztraverse

Once installed you can import the library as follows:

import viztraverse from viztraverse

Then to use the seriealize library:

viztraverse.deserialize([1,1,null,1]); 

And, finally to draw:

viztraverse.draw(viztraverse.deserialize([1,1,null,1]); 

Troubleshooting

This library requires the correct or proper version for the tkanner library. The problem is specific to MacOS from what the resources say here Nonetheless, if you must face the problem due to failures, here is a common solution:

pip3 install tk

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

viztraverse-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

viztraverse-0.0.1-py3-none-any.whl (4.1 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