Skip to main content

Modular DSA/DAA competitive programming library with fuzzy doc lookup

Project description

pythonnnn

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 pythonnnn

Requires Python 3.6+ and networkx.

Quick start

import pythonnnn
from pythonnnn 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

  • pythonnnn.docdoc() lookup (~300+ problems)
  • pythonnnn.GraphOps / MatrixGraph — graph utilities
  • pythonnnn.TreeOps / Node — tree utilities
  • pythonnnn.Scanner — competitive-programming style input

License

MIT

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

pythonnnn-2.2.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pythonnnn-2.2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pythonnnn-2.2.1.tar.gz.

File metadata

  • Download URL: pythonnnn-2.2.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for pythonnnn-2.2.1.tar.gz
Algorithm Hash digest
SHA256 654551605ae88d10e7bea516dabff615a9f16f27a927c5257c451fb2ce1c0618
MD5 2b9ace0986df5a830a46df578ad93030
BLAKE2b-256 9eb4c2f16e7902a9ef4c14d02874c9e4c59a0eeb83a195d6b35c29e703b8594a

See more details on using hashes here.

File details

Details for the file pythonnnn-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: pythonnnn-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for pythonnnn-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50cace700dfb534e819a9f65b227bdc21acf0962433a70fe8265a3fd8cf8ddcf
MD5 fb5e34bdf5799cda09216e272d3f2759
BLAKE2b-256 e1ad0075b472f5e1d4bf79942ce7ffd8d260423fe866788ede4af8af54e9ae91

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