# favo02/competitive-programming architecture

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

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

## Overview

##### Main Components Organization

The system should be organized into these primary components:

**[Competition Platforms]**

- [Solution Categories]

- [Implementation Languages]
- [Problem Types]

- [Utility Components]

##### Detailed Component Breakdown

a) Competition Platforms (Top Level):
- Create distinct sections for each major platform:
- Advent of Code
- AtCoder
- Codeforces
- LeetCode
- Meta Hacker Cup
- etc.

b) Solution Categories (Middle Level):
- By:
- Contest submissions
- Training problems
- Utils/Templates
- Explanations (specifically for LeetCode)

c) Implementation Languages (Lower Level):
- Language distribution:
- Python
- C++
- Go
- JavaScript
- Others (Rust, Erlang, Scala)

- Platforms: Hexagons
- Categories: Rectangles
- Solutions: Circles
- Utils: Diamonds

**Connections:**

##### Special Features

a) Cross-Platform Utilities:
- Shared template files
- Common algorithms/data structures
- Testing frameworks

b) Platform-Specific Elements:
- Contest-specific structures
- Rating/Performance tracking
- Problem categorization

##### Implementation Details

**[Platform Node]**
- Name
- Total Problems Solved
- Current Rating (if applicable)
- Primary Languages Used

**[Solution Node]**
- Problem ID/Name
- Language
- Contest/Training
- Difficulty Level

##### Relationships to Highlight

- Dependencies between utility functions and solutions
- Language-specific template usage
- Cross-platform problem similarities
- Contest vs. practice problem distribution

## Diagram (Mermaid)

```mermaid
graph TB
    %% Platforms
    subgraph Platforms
        AOC[Advent of Code]:::aoc
        AC[AtCoder]:::atcoder
        CF[Codeforces]:::codeforces
        LC[LeetCode]:::leetcode
        MHC[Meta Hacker Cup]:::meta
    end

    %% Categories per Platform
    subgraph AOC_Structure[Advent of Code Structure]
        AOC_Years["Yearly Challenges"]:::aoc
        AOC_Utils["Utils"]:::utils
        AOC_Templates["Templates"]:::template
    end

    subgraph AC_Structure[AtCoder Structure]
        AC_Contests["Contests"]:::contest
        AC_Template["Templates"]:::template
    end

    subgraph CF_Structure[Codeforces Structure]
        CF_Contests["Contest Submissions"]:::contest
        CF_Training["Training Problems"]:::training
        CF_Template["Templates"]:::template
    end

    subgraph LC_Structure[LeetCode Structure]
        LC_Solutions["Solutions"]:::solution
        LC_Explanations["Explanations"]:::doc
        LC_Utils["Utils"]:::utils
    end

    subgraph MHC_Structure[Meta Hacker Cup Structure]
        MHC_Rounds["Competition Rounds"]:::contest
    end

    %% Languages
    subgraph Languages
        Python:::lang
        CPP["C++"]:::lang
        Go:::lang
        JS["JavaScript"]:::lang
        Others["Other Languages"]:::lang
    end

    %% Connections
    AOC --> AOC_Structure
    AC --> AC_Structure
    CF --> CF_Structure
    LC --> LC_Structure
    MHC --> MHC_Structure

    %% Language connections
    AOC_Structure --> Python
    AOC_Structure --> Go
    AOC_Structure --> JS
    AC_Structure --> Python
    AC_Structure --> CPP
    CF_Structure --> Python
    CF_Structure --> CPP
    LC_Structure --> Python
    LC_Structure --> CPP
    LC_Structure --> JS
    MHC_Structure --> Python
    MHC_Structure --> CPP

    %% Click events
    click AOC "https://github.com/favo02/competitive-programming/tree/main/advent-of-code/"
    click AC "https://github.com/favo02/competitive-programming/tree/main/atcoder/"
    click CF "https://github.com/favo02/competitive-programming/tree/main/codeforces/"
    click LC "https://github.com/favo02/competitive-programming/tree/main/leetcode/"
    click MHC "https://github.com/favo02/competitive-programming/tree/main/meta-hacker-cup/"
    click CF_Contests "https://github.com/favo02/competitive-programming/tree/main/codeforces/Contests/"
    click CF_Training "https://github.com/favo02/competitive-programming/tree/main/codeforces/Training/"
    click LC_Explanations "https://github.com/favo02/competitive-programming/tree/main/leetcode/explanations/"
    click LC_Solutions "https://github.com/favo02/competitive-programming/tree/main/leetcode/solved/"
    click AOC_Utils "https://github.com/favo02/competitive-programming/tree/main/advent-of-code/utils/"
    click LC_Utils "https://github.com/favo02/competitive-programming/tree/main/leetcode/utils/"
    click AC_Contests "https://github.com/favo02/competitive-programming/tree/main/atcoder/Contests/"
    click MHC_Rounds "https://github.com/favo02/competitive-programming/tree/main/meta-hacker-cup/2024/"

    %% Styling
    classDef aoc fill:#009900,color:white
    classDef atcoder fill:#222222,color:white
    classDef codeforces fill:#318CE7,color:white
    classDef leetcode fill:#FFA116,color:black
    classDef meta fill:#0668E1,color:white
    classDef contest fill:#FFB6C1,color:black
    classDef training fill:#98FB98,color:black
    classDef solution fill:#DDA0DD,color:black
    classDef doc fill:#F0E68C,color:black
    classDef utils fill:#B8860B,color:white
    classDef template fill:#708090,color:white
    classDef lang fill:#4682B4,color:white
```
