Metadata-Version: 2.4
Name: pythonnnn
Version: 2.2.0
Summary: Modular DSA/DAA competitive programming library with fuzzy doc lookup
Author: pythonnnn
License: MIT
Project-URL: Homepage, https://pypi.org/project/pythonnnn/
Project-URL: Documentation, https://pypi.org/project/pythonnnn/
Keywords: dsa,algorithms,competitive-programming,daa,education
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: networkx>=2.5
Dynamic: license-file

# 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

```bash
pip install pythonnnn
```

Requires Python 3.6+ and `networkx`.

## Quick start

```python
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.doc` — `doc()` lookup (~300+ problems)
- `pythonnnn.GraphOps` / `MatrixGraph` — graph utilities
- `pythonnnn.TreeOps` / `Node` — tree utilities
- `pythonnnn.Scanner` — competitive-programming style input

## License

MIT
