# ahmedkhaleel2004/leetcode architecture

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

- Interactive diagram: https://gitdiagram.com/ahmedkhaleel2004/leetcode
- Repository: https://github.com/ahmedkhaleel2004/leetcode

## Overview

##### Main Components

a. Problem Difficulty Categories
- Easy Problems (e_*)
- Medium Problems (m_*)
- Hard Problems (h_*)

b. Solution Types/Patterns
- Array/String Manipulation
- Dynamic Programming
- Data Structures (Trees, Linked Lists, etc.)
- Mathematical Problems
- Search/Sort Algorithms

**Repository Root**

**Easy Solutions (56 problems) --- Medium Solutions (21 problems) --- Hard Solutions (2 problems)**

##### Additional Details

Include:
- Problem counts per category
- Common pattern relationships
- Problem number cross-references
- Solution technique indicators

**[Repository Root]**

- [Easy Problems]--|--[Medium Problems]--|--[Hard Problems]

- [Arrays]         |--[Arrays]           |--[Arrays]
- [Strings]        |--[Strings]          |--[Advanced]
- [Math]           |--[Advanced DS]
- [Basic DS]       |--[Algorithms]

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Legend
        L1[Easy Problem]:::easy
        L2[Medium Problem]:::medium
        L3[Hard Problem]:::hard
        L4[Problem Category]:::category
    end

    Root[Repository Root]:::root
    click Root "https://github.com/ahmedkhaleel2004/leetcode/tree/main//"

    Root --> Easy[Easy Problems<br/>56 problems]:::easy
    Root --> Medium[Medium Problems<br/>21 problems]:::medium
    Root --> Hard[Hard Problems<br/>2 problems]:::hard
    click Easy "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_*.py"
    click Medium "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/m_*.py"
    click Hard "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/h_*.py"

    subgraph Easy Problems
        Easy --> EasyArrays[Array Operations]:::category
        Easy --> EasyStrings[String Manipulation]:::category
        Easy --> EasyDS[Data Structures]:::category
        Easy --> EasySearch[Search Algorithms]:::category
        Easy --> EasyLL[Linked List]:::category

        EasyArrays --> E1470["e_1470<br/>Array Shuffle"]:::easy
        EasyArrays --> E1480["e_1480<br/>Running Sum"]:::easy
        EasyArrays --> E1["e_1<br/>Two Sum"]:::easy
        click E1470 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_1470.py"
        click E1480 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_1480.py"
        click E1 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_1.py"

        EasyStrings --> E1108["e_1108<br/>IP Defanging"]:::easy
        EasyStrings --> E14["e_14<br/>Longest Common Prefix"]:::easy
        click E1108 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_1108.py"
        click E14 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_14.py"

        EasyDS --> E225["e_225<br/>Stack Implementation"]:::easy
        EasyDS --> E232["e_232<br/>Queue Implementation"]:::easy
        click E225 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_225.py"
        click E232 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_232.py"

        EasySearch --> E704["e_704<br/>Binary Search"]:::easy
        click E704 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_704.py"

        EasyLL --> E206["e_206<br/>Reverse Linked List"]:::easy
        EasyLL --> E141["e_141<br/>Linked List Cycle"]:::easy
        click E206 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_206.py"
        click E141 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/e_141.py"
    end

    subgraph Medium Problems
        Medium --> MediumArrays[Array Operations]:::category
        Medium --> MediumSearch[Search Algorithms]:::category

        MediumSearch --> M215["m_215<br/>Kth Largest Element"]:::medium
        click M215 "https://github.com/ahmedkhaleel2004/leetcode/blob/main/python/m_215.py"
    end

    subgraph Hard Problems
        Hard --> HardArrays[Array Operations]:::category
    end

    classDef root fill:#6d8759,stroke:#333,stroke-width:2px
    classDef easy fill:#90EE90,stroke:#333,stroke-width:1px
    classDef medium fill:#FFD700,stroke:#333,stroke-width:1px
    classDef hard fill:#FF6B6B,stroke:#333,stroke-width:1px
    classDef category fill:#87CEEB,stroke:#333,stroke-width:1px
```
