# gantyadarohith/competitive-programming architecture

> Architecture diagram of the GitHub repository gantyadarohith/competitive-programming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gantyadarohith/competitive-programming
- Repository: https://github.com/gantyadarohith/competitive-programming

## Overview

This repository is a portfolio of independent competitive-programming solutions, not a single application. The user-facing workflow is to select a problem’s file, provide the expected input, and receive that solution’s output; the README identifies Codeforces and LeetCode as the two collections. The sampled files demonstrate standalone input-processing and algorithm implementations, with no shared runtime or demonstrated calls between solutions. Categories below summarize the portfolio rather than imply a pipeline. Unsampled files are grouped by collection because their individual behavior was not inspected.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cf["Codeforces solutions"]
  node_cf_simple["Basic problem solutions"]
  node_cf_arrays["Array and number problems"]
  node_cf_grid["Grid scoring<br/>[C.py]"]
  node_cf_construct["Constructive answers<br/>[A.py]"]
end

subgraph group_lc["LeetCode solutions"]
  node_lc_search["Search solutions<br/>[binary-search.cpp]"]
  node_lc_arrays["Array solutions"]
  node_lc_strings["String solutions"]
  node_lc_trees["Tree solutions"]
  node_lc_graphs["Graph solutions"]
  node_lc_dp["Dynamic programming"]
end

subgraph group_algo["Algorithm examples"]
end

node_user(("Problem solver"))

click node_cf_simple "https://github.com/gantyadarohith/competitive-programming/tree/master/Codeforces"
click node_cf_arrays "https://github.com/gantyadarohith/competitive-programming/tree/master/Codeforces"
click node_cf_grid "https://github.com/gantyadarohith/competitive-programming/blob/master/Codeforces/1873/C.py"
click node_cf_construct "https://github.com/gantyadarohith/competitive-programming/blob/master/Codeforces/1845/A.py"
click node_lc_search "https://github.com/gantyadarohith/competitive-programming/blob/master/LeetCode/binary-search.cpp"
click node_lc_arrays "https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode"
click node_lc_strings "https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode"
click node_lc_trees "https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode"
click node_lc_graphs "https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode"
click node_lc_dp "https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cf_simple,node_cf_arrays,node_cf_grid,node_cf_construct toneBlue
class node_lc_search,node_lc_arrays,node_lc_strings,node_lc_trees,node_lc_graphs,node_lc_dp toneAmber
class node_user toneIndigo
```

## Components

### Codeforces solutions

- [Basic problem solutions](https://github.com/gantyadarohith/competitive-programming/tree/master/Codeforces): `Codeforces`
- [Array and number problems](https://github.com/gantyadarohith/competitive-programming/tree/master/Codeforces): `Codeforces`
- [Grid scoring](https://github.com/gantyadarohith/competitive-programming/blob/master/Codeforces/1873/C.py): `Codeforces/1873/C.py`
- [Constructive answers](https://github.com/gantyadarohith/competitive-programming/blob/master/Codeforces/1845/A.py): `Codeforces/1845/A.py`

### LeetCode solutions

- [Search solutions](https://github.com/gantyadarohith/competitive-programming/blob/master/LeetCode/binary-search.cpp): `LeetCode/binary-search.cpp`
- [Array solutions](https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode): `LeetCode`
- [String solutions](https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode): `LeetCode`
- [Tree solutions](https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode): `LeetCode`
- [Graph solutions](https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode): `LeetCode`
- [Dynamic programming](https://github.com/gantyadarohith/competitive-programming/tree/master/LeetCode): `LeetCode`

### Other components

- **Problem solver**
