# druvisiii-01/my-cpp-learning architecture

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

- Interactive diagram: https://gitdiagram.com/druvisiii-01/my-cpp-learning
- Repository: https://github.com/druvisiii-01/my-cpp-learning

## Overview

MY-CPP-LEARNING is a personal archive of independent Codeforces and AtCoder solutions, not a shared application. The workflow is simple: a user supplies problem input to one standalone program, which computes and prints its answer. The archive covers greedy, graph, data-structure, dynamic-programming, simulation, two-pointer, and construction problems. Sampled files show this input-to-output pattern; the README documents the wider topic range. Programs do not appear to call or share state with one another.

Main entry points: [`contests/previous/data-structures/segment-tree/LGP3373.cpp`](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/data-structures/segment-tree/LGP3373.cpp) (Range Updates), [`contests/previous/dp/digit/LGP2602.cpp`](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/dp/digit/LGP2602.cpp) (Digit Counting), [`contests/previous/binary-search/CF1109-E.CPP`](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/binary-search/CF1109-E.CPP) (Binary Queries), [`contests/previous/two-pointers/ABC475-F.CPP`](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/two-pointers/ABC475-F.CPP) (Rectangle Search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_archive["Solution Archive"]
  node_previous["Previous Solutions"]
  node_present["Present Solutions"]
end

subgraph group_algorithms["Algorithm Examples"]
  node_segment["Range Updates<br/>[LGP3373.cpp]"]
  node_digitdp["Digit Counting<br/>[LGP2602.cpp]"]
  node_binary["Binary Queries<br/>[CF1109-E.CPP]"]
  node_twoptr["Rectangle Search<br/>[ABC475-F.CPP]"]
  node_construct["Constructive Output<br/>[CF940-D.cpp]"]
  node_greedy["Greedy Game<br/>[CF693-D.cpp]"]
  node_current["String Comparison<br/>[LGP9868.cpp]"]
end

node_user(("Problem User"))

node_user -->|"enters input"| node_segment
node_segment -->|"prints answer"| node_user
node_user -->|"enters input"| node_digitdp
node_digitdp -->|"prints counts"| node_user
node_user -->|"enters input"| node_binary
node_binary -->|"prints answers"| node_user
node_user -->|"enters input"| node_twoptr
node_twoptr -->|"prints answer"| node_user
node_user -->|"enters input"| node_construct
node_construct -->|"prints result"| node_user
node_user -->|"enters input"| node_greedy
node_greedy -->|"prints winner"| node_user
node_user -->|"enters input"| node_current
node_current -->|"prints result"| node_user

click node_previous "https://github.com/druvisiii-01/my-cpp-learning/tree/main/contests/previous"
click node_present "https://github.com/druvisiii-01/my-cpp-learning/tree/main/contests/present"
click node_segment "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/data-structures/segment-tree/LGP3373.cpp"
click node_digitdp "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/dp/digit/LGP2602.cpp"
click node_binary "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/binary-search/CF1109-E.CPP"
click node_twoptr "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/two-pointers/ABC475-F.CPP"
click node_construct "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/constructive/CF940-D.cpp"
click node_greedy "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/greedy/CF693-D.cpp"
click node_current "https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/present/LGP9868.cpp"

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_previous,node_present,node_user toneBlue
class node_segment,node_digitdp,node_binary,node_twoptr,node_construct,node_greedy,node_current toneAmber
```

## Components

### Solution Archive

- [Previous Solutions](https://github.com/druvisiii-01/my-cpp-learning/tree/main/contests/previous): `contests/previous`
- [Present Solutions](https://github.com/druvisiii-01/my-cpp-learning/tree/main/contests/present): `contests/present`

### Algorithm Examples

- [Range Updates](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/data-structures/segment-tree/LGP3373.cpp): `contests/previous/data-structures/segment-tree/LGP3373.cpp`
- [Digit Counting](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/dp/digit/LGP2602.cpp): `contests/previous/dp/digit/LGP2602.cpp`
- [Binary Queries](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/binary-search/CF1109-E.CPP): `contests/previous/binary-search/CF1109-E.CPP`
- [Rectangle Search](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/two-pointers/ABC475-F.CPP): `contests/previous/two-pointers/ABC475-F.CPP`
- [Constructive Output](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/constructive/CF940-D.cpp): `contests/previous/constructive/CF940-D.cpp`
- [Greedy Game](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/previous/greedy/CF693-D.cpp): `contests/previous/greedy/CF693-D.cpp`
- [String Comparison](https://github.com/druvisiii-01/my-cpp-learning/blob/main/contests/present/LGP9868.cpp): `contests/present/LGP9868.cpp`

### Other components

- **Problem User**

## Connections

- Problem User → Range Updates: enters input (evidence: `contests/previous/data-structures/segment-tree/LGP3373.cpp`)
- Range Updates → Problem User: prints answer (evidence: `contests/previous/data-structures/segment-tree/LGP3373.cpp`)
- Problem User → Digit Counting: enters input (evidence: `contests/previous/dp/digit/LGP2602.cpp`)
- Digit Counting → Problem User: prints counts (evidence: `contests/previous/dp/digit/LGP2602.cpp`)
- Problem User → Binary Queries: enters input (evidence: `contests/previous/binary-search/CF1109-E.CPP`)
- Binary Queries → Problem User: prints answers (evidence: `contests/previous/binary-search/CF1109-E.CPP`)
- Problem User → Rectangle Search: enters input (evidence: `contests/previous/two-pointers/ABC475-F.CPP`)
- Rectangle Search → Problem User: prints answer (evidence: `contests/previous/two-pointers/ABC475-F.CPP`)
- Problem User → Constructive Output: enters input (evidence: `contests/previous/constructive/CF940-D.cpp`)
- Constructive Output → Problem User: prints result (evidence: `contests/previous/constructive/CF940-D.cpp`)
- Problem User → Greedy Game: enters input (evidence: `contests/previous/greedy/CF693-D.cpp`)
- Greedy Game → Problem User: prints winner (evidence: `contests/previous/greedy/CF693-D.cpp`)
- Problem User → String Comparison: enters input (evidence: `contests/present/LGP9868.cpp`)
- String Comparison → Problem User: prints result (evidence: `contests/present/LGP9868.cpp`)
