prettyalgo - pretty print for programming puzzles.
Project description
:sparkles: prettyalgo
Pretty print for programming puzzles.
Highlights:
- Pretty print data structures and algorithms, especially sequence-oriented ones involving arrays such as lists, tuples and strs, and iterations, in the vein of leetcode and similar programming puzzles.
- Extensive configurability for various display styles and usage modes, such as console-interactive, animated, and more.
- Extensive use of pre-commit hooks and unit-tests coverage to ensure correct functionality. Programming puzzles are hard enough to solve and debug, we shouldn't make it more error-prone by trying to use this library!
Getting Started
To install from PyPI, use pip:
pip install prettyalgo
See the examples sub-directory for examples showing the usage of the library.
Typical output when using on the terminal in interactive mode would like:
Remove Duplicates From Sorted Array 2
-------------------------------------
len(lst): 9
i 6
j 4
count 4
+-----------------------------------------------------------------------------------------+
| | | | | | | | | |
| 0 | 0 | 1 | 1 | 1 | 1 | 2 | 3 | 3 |
| | | | | | | | | |
+-----------------------------------------------------------------------------------------+
^ i=6
^ j=4
Press Enter to continue...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prettyalgo-0.0.3.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prettyalgo-0.0.3.tar.gz.
File metadata
- Download URL: prettyalgo-0.0.3.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14ee4711c8bef035e793effac4d9c99aebd6577568d401403d6af8b7c7bbcc1
|
|
| MD5 |
c2c70b075598ec491f5857b80dcb74d6
|
|
| BLAKE2b-256 |
7b3d30d0815080ba7a671657965b1cd4e27c177e87c8925e7e5705a33dfb97ba
|
File details
Details for the file prettyalgo-0.0.3-py3-none-any.whl.
File metadata
- Download URL: prettyalgo-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4019f9247dcea341f083d2535e043756b8b26cc13834286181bf980cc1fe2439
|
|
| MD5 |
91402aa72851bd8a85d69029efe0ef3a
|
|
| BLAKE2b-256 |
95c6f219095c57da4842e20224c74725955fa29a55021f505b52d49f31ef02ea
|