Modular DSA/DAA competitive programming library with fuzzy doc lookup
Project description
pythonnn
Modular DSA/DAA library for competitive programming and coursework: graph/tree helpers, fast I/O, and a large doc() lookup for solutions, pseudocode, and MCQs.
Install
pip install pythonnn
Requires Python 3.6+ and networkx.
Quick start
import pythonnn
from pythonnn import doc, scan, GraphOps, TreeOps
# Print a solution (fuzzy name match)
doc("shell sort", "python")
doc("shell sort", "python_iteration")
# Pseudocode / theory
doc("radix sort", "theory")
doc("1.1", "theory")
# MCQs by topic
doc("", "mcq")
doc("matrix chain", "mcq")
doc("lcs", "mcq")
# Graph helper (NetworkX-backed)
g = GraphOps()
g.add(0, 1)
g.add(1, 2)
print(g.bfs(0))
doc() languages
| Second argument | Output |
|---|---|
baby (default) |
Short / baby-friendly code |
python |
Full Python solution |
python_iteration |
Version that prints iteration steps (where available) |
theory |
Pseudocode and exam notes |
mcq |
Topic-wise MCQ questions and answers |
Aliases and unit indices work (e.g. doc("4.12"), doc("kmp"), doc("6.69")).
Modules
pythonnn.doc—doc()lookup (~300+ problems)pythonnn.GraphOps/MatrixGraph— graph utilitiespythonnn.TreeOps/Node— tree utilitiespythonnn.Scanner— competitive-programming style input
License
MIT
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
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 pythonnn-2.2.0.tar.gz.
File metadata
- Download URL: pythonnn-2.2.0.tar.gz
- Upload date:
- Size: 86.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdfe56414e1e607c41264b07d89aa5a62b3a8fbd1829c65b7c0a6953c12507dd
|
|
| MD5 |
8a8d11153d83fc84c13108f4d2107948
|
|
| BLAKE2b-256 |
3d4eed0c8e888416dfe11dd00a99e0d979d0e12dc6930a0e9d26222bc5e8ba9c
|
File details
Details for the file pythonnn-2.2.0-py3-none-any.whl.
File metadata
- Download URL: pythonnn-2.2.0-py3-none-any.whl
- Upload date:
- Size: 95.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8031cb0640ceda2faa959160ed33855d9c78be120437a3396822cbc4e41d930
|
|
| MD5 |
a974b97eb42f30f7399187839160c3ba
|
|
| BLAKE2b-256 |
ca388e282c7b64275cdf9421a00f3ae7b71737986ad892c13556661dbdcecf38
|