# icydrae/csharp-exercises architecture

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

- Interactive diagram: https://gitdiagram.com/icydrae/csharp-exercises
- Repository: https://github.com/icydrae/csharp-exercises

## Overview

##### Main Components

a. Solution Categories
- Codewars Solutions Hub
- LeetCode Solutions Hub (specifically Top Interview 150)

b. Problem Categories
- For Codewars:
- Algorithm Challenges (Binary Addition, Persistent Bugger)
- String Manipulation (Jaden Casing)
- Data Structure Challenges (Valid Braces)

- For LeetCode:
- Array Operations (Merge Sorted Array, Rotate Array)
- Number Theory (Palindrome Number)
- String Processing (Valid Anagram, Roman to Integer)
- Dynamic Programming (Maximum Subarray, Climbing Stairs)
- Search Algorithms (Search Insert Position, Find Peak Element)

##### Important Details

a. Solution Properties:
- Problem difficulty level
- Algorithm category
- Time/Space complexity indicators

b. Relationships:
- Connections between problems that use similar techniques
- Prerequisite problems where applicable

**[Root Project]**
- [Codewars]
- [Algorithm Challenges]
- [String Manipulation]
- [Data Structures]
- [LeetCode]
- [Top Interview 150]
- [Array Operations]
- [Number Theory]
- [Dynamic Programming]

##### Maintainability

- Use a modular structure that can accommodate new categories
- Clear naming conventions that match the file structure

- The overall organization of the coding solutions
- The relationships between different problem types
- The progression of difficulty across problems
- Common patterns and techniques used across different platforms

## Diagram (Mermaid)

```mermaid
graph TB
    %% Main Platforms
    Root["Coding Practice Solutions"]
    CodeWars["Codewars Solutions Hub"]:::codewars
    LeetCode["LeetCode Solutions Hub"]:::leetcode
    
    %% Platform Connections
    Root --> CodeWars
    Root --> LeetCode
    
    %% Codewars Categories
    AlgoChall["Algorithm Challenges"]:::category
    StringManip["String Manipulation"]:::category
    DataStruct["Data Structure Challenges"]:::category
    
    CodeWars --> AlgoChall
    CodeWars --> StringManip
    CodeWars --> DataStruct
    
    %% Codewars Problems
    BinAdd["Binary Addition"]:::problem
    PersBug["Persistent Bugger"]:::problem
    JadenCase["Jaden Casing"]:::problem
    ValidBraces["Valid Braces"]:::problem
    
    AlgoChall --> BinAdd
    AlgoChall --> PersBug
    StringManip --> JadenCase
    DataStruct --> ValidBraces
    
    %% LeetCode Categories
    ArrayOps["Array Operations"]:::category
    NumTheory["Number Theory"]:::category
    StringProc["String Processing"]:::category
    DynProg["Dynamic Programming"]:::category
    SearchAlgo["Search Algorithms"]:::category
    
    LeetCode --> ArrayOps
    LeetCode --> NumTheory
    LeetCode --> StringProc
    LeetCode --> DynProg
    LeetCode --> SearchAlgo
    
    %% LeetCode Problems
    MergeSorted["Merge Sorted Array"]:::problem
    RotateArray["Rotate Array"]:::problem
    PalinNum["Palindrome Number"]:::problem
    ValidAna["Valid Anagram"]:::problem
    RomanInt["Roman to Integer"]:::problem
    LongPrefix["Longest Common Prefix"]:::problem
    MaxSubarray["Maximum Subarray"]:::problem
    ClimbStairs["Climbing Stairs"]:::problem
    SearchInsert["Search Insert Position"]:::problem
    PeakElement["Find Peak Element"]:::problem
    
    ArrayOps --> MergeSorted
    ArrayOps --> RotateArray
    NumTheory --> PalinNum
    StringProc --> ValidAna
    StringProc --> RomanInt
    StringProc --> LongPrefix
    DynProg --> MaxSubarray
    DynProg --> ClimbStairs
    SearchAlgo --> SearchInsert
    SearchAlgo --> PeakElement
    
    %% Click Events
    click CodeWars "https://github.com/icydrae/csharp-exercises/tree/main//Codewars"
    click LeetCode "https://github.com/icydrae/csharp-exercises/tree/main//LeetCode/01-Top Interview 150"
    click BinAdd "https://github.com/icydrae/csharp-exercises/blob/main//Codewars/01. Binary Addition/AddBinary.cs"
    click PersBug "https://github.com/icydrae/csharp-exercises/blob/main//Codewars/02. Persistent Bugger/PersistentBugger.cs"
    click ValidBraces "https://github.com/icydrae/csharp-exercises/blob/main//Codewars/03. Valid Braces/Brace.cs"
    click JadenCase "https://github.com/icydrae/csharp-exercises/blob/main//Codewars/04. Jaden Casing Strings/JadenCase.cs"
    click MergeSorted "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/001-Merge Sorted Array.cs"
    click RotateArray "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/010-Rotate Array.cs"
    click PalinNum "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/003-Palindrome Number.cs"
    click ValidAna "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/004-Valid Anagram.cs"
    click RomanInt "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/005-Roman to Integer.cs"
    click LongPrefix "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/006-Longest Common Prefix.cs"
    click MaxSubarray "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/007-Maximum Subarray.cs"
    click ClimbStairs "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/008-Climbing Stairs.cs"
    click SearchInsert "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/009-Search Insert Position.cs"
    click PeakElement "https://github.com/icydrae/csharp-exercises/blob/main//LeetCode/01-Top Interview 150/011-Find Peak Element.cs"
    
    %% Styles
    classDef codewars fill:#3498db,stroke:#2980b9,color:white
    classDef leetcode fill:#2ecc71,stroke:#27ae60,color:white
    classDef category fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef problem fill:#e74c3c,stroke:#c0392b,color:white
    
    %% Legend
    subgraph Legend
        L1["Platform"]:::codewars
        L2["Category"]:::category
        L3["Problem"]:::problem
    end
```
