Skip to main content

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.docdoc() lookup (~300+ problems)
  • pythonnn.GraphOps / MatrixGraph — graph utilities
  • pythonnn.TreeOps / Node — tree utilities
  • pythonnn.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

pythonnn-2.0.0.tar.gz (89.8 kB view details)

Uploaded Source

Built Distribution

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

pythonnn-2.0.0-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

Details for the file pythonnn-2.0.0.tar.gz.

File metadata

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

File hashes

Hashes for pythonnn-2.0.0.tar.gz
Algorithm Hash digest
SHA256 285112fe9f02c6446175554ee96274ee210c0d38f5e1e65254d0d302e0c13eb8
MD5 919eda257179457c65352935b3eaaaab
BLAKE2b-256 6cf6f550a5cc92f7e6fb29330c7ac15abf40ffb1328b4a918eb3b3a588cb8648

See more details on using hashes here.

File details

Details for the file pythonnn-2.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pythonnn-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c9bd070f2b7acc8949b190a11696374bccd460251e2fb509dbedb50886b4e0
MD5 3a80bb5ed3ab5386278e8c14a084bce6
BLAKE2b-256 50eccc12ed876b37bc5839f755beb9f964a826195371d9b3506c6d22365fea1f

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