# jiganesh/loads-of-logic architecture

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

- Interactive diagram: https://gitdiagram.com/jiganesh/loads-of-logic
- Repository: https://github.com/jiganesh/loads-of-logic

## Overview

##### Project type and purpose
- This repository (“High-On-DSA”) is not a running full-stack application but an open-source content and code library of Data Structures & Algorithms (DSA) solutions.
- It organizes solution source files (Python, Java, JavaScript, C++), tests, and documentation (Markdown and HTML). It also provides a static landing page (INDEX.html) and uses Jest for JS solution testing.

##### File structure
- Top level:
- `.dev/` – internal scripts, indexes, resources and charts for docs (e.g., section generators, difficulty chart)
- `INDEX.html`, `README.md`, `.md` files (AlgorithmicQuestions.md, TECHNIQUES.md, etc.) – documentation
- `package.json` + `jest.config.js` – declares Node.js project, JS testing framework
- Directories named by algorithm category (arrays, backtracking, graphs, …) containing code solutions in multiple languages
- `_testconfig/` – example JS test code
- Patterns:
- Category-based grouping of code by topic
- Multi-language support
- Documentation separated from source code
- Test harness for JavaScript solutions

##### README for additional insights
- Expands by category with links to individual LeetCode problem statements
- Encourages contribution and links to resources

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% External actors
    Dev("Developer/Contributor"):::external
    VIS("Visitor"):::external

    %% Repository central
    GitHubRepo("GitHub Repository"):::repo
    Dev-->|"clone & push"|GitHubRepo

    %% Source Code Modules
    subgraph "Source Code Modules"
        ARR["arrays"]:::code
        BK["backtracking"]:::code
        BM["bitManipulation"]:::code
        CP["concepts"]:::code
        DS["design"]:::code
        DP["dynamicProgramming"]:::code
        GR["graphs"]:::code
        GY["greedy"]:::code
        HT["hashTable"]:::code
        HP["heap"]:::code
        LL["linkedlist"]:::code
        MS["maths"]:::code
        PS["prefixSum"]:::code
        QU["queue"]:::code
        RC["recursion"]:::code
        SR["search"]:::code
        ST["segmentationTree"]:::code
        SO["sorting"]:::code
        SK["stack"]:::code
        STR["strings"]:::code
        TR["trees"]:::code
        TRS["tries"]:::code
        TP["twoPointers"]:::code
    end
    GitHubRepo -->|"contains"| ARR
    GitHubRepo --> BK
    GitHubRepo --> BM
    GitHubRepo --> CP
    GitHubRepo --> DS
    GitHubRepo --> DP
    GitHubRepo --> GR
    GitHubRepo --> GY
    GitHubRepo --> HT
    GitHubRepo --> HP
    GitHubRepo --> LL
    GitHubRepo --> MS
    GitHubRepo --> PS
    GitHubRepo --> QU
    GitHubRepo --> RC
    GitHubRepo --> SR
    GitHubRepo --> ST
    GitHubRepo --> SO
    GitHubRepo --> SK
    GitHubRepo --> STR
    GitHubRepo --> TR
    GitHubRepo --> TRS
    GitHubRepo --> TP

    %% Documentation
    subgraph "Documentation"
        RD["README.md"]:::docs
        AQ["AlgorithmicQuestions.md"]:::docs
        TC["TECHNIQUES.md"]:::docs
        CC["CONTRIBUTING.md"]:::docs
        CO["CODE_OF_CONDUCT.md"]:::docs
        NO["NOTES.md"]:::docs
        TD2["TODO.md"]:::docs
        INDEX["INDEX.html"]:::docs
    end
    GitHubRepo -->|"docs"| RD
    GitHubRepo --> AQ
    GitHubRepo --> TC
    GitHubRepo --> CC
    GitHubRepo --> CO
    GitHubRepo --> NO
    GitHubRepo --> TD2
    GitHubRepo --> INDEX

    %% Internal scripts and resources
    subgraph "Internal Doc-Gen Scripts"
        DEVALL[".dev"]:::dev
    end
    GitHubRepo --> DEVALL
    DEVALL -->|"generates docs"| Documentation

    %% Test Framework
    subgraph "Test Harness"
        PKG["package.json"]:::test
        LOCK["package-lock.json"]:::test
        JEST["jest.config.js"]:::test
        TESTCFG["_testconfig"]:::test
    end
    GitHubRepo --> PKG
    GitHubRepo --> LOCK
    GitHubRepo --> JEST
    GitHubRepo --> TESTCFG
    Dev -->|"run tests"| TESTCFG
    Dev -->|"npm test"| PKG

    %% CI/CD Pipeline
    CI["CI/CD Pipeline"]:::ci
    GitHubRepo -->|"push triggers"| CI
    CI -->|"runs lint & Jest"| TESTCFG
    CI --> DEVALL
    CI --> PKG
    CI --> JEST
    CI -->|"deploy site"| HOST

    %% Hosting
    subgraph "Hosting (GitHub Pages)"
        HOST["Static Site Hosting"]:::host
    end
    HOST --> INDEX
    HOST --> RD
    HOST --> AQ
    HOST --> TC
    HOST --> CC
    HOST --> CO
    HOST --> NO
    HOST --> TD2

    %% Visitor access
    VIS -->|"browse site"| HOST

    %% Click events
    click GitHubRepo "https://github.com/jiganesh/loads-of-logic/tree/main//"
    click ARR "https://github.com/jiganesh/loads-of-logic/tree/main//arrays"
    click BK "https://github.com/jiganesh/loads-of-logic/tree/main//backtracking"
    click BM "https://github.com/jiganesh/loads-of-logic/tree/main//bitManipulation"
    click CP "https://github.com/jiganesh/loads-of-logic/tree/main//concepts"
    click DS "https://github.com/jiganesh/loads-of-logic/tree/main//design"
    click DP "https://github.com/jiganesh/loads-of-logic/tree/main//dynamicProgramming"
    click GR "https://github.com/jiganesh/loads-of-logic/tree/main//graphs"
    click GY "https://github.com/jiganesh/loads-of-logic/tree/main//greedy"
    click HT "https://github.com/jiganesh/loads-of-logic/tree/main//hashTable"
    click HP "https://github.com/jiganesh/loads-of-logic/tree/main//heap"
    click LL "https://github.com/jiganesh/loads-of-logic/tree/main//linkedlist"
    click MS "https://github.com/jiganesh/loads-of-logic/tree/main//maths"
    click PS "https://github.com/jiganesh/loads-of-logic/tree/main//prefixSum"
    click QU "https://github.com/jiganesh/loads-of-logic/tree/main//queue"
    click RC "https://github.com/jiganesh/loads-of-logic/tree/main//recursion"
    click SR "https://github.com/jiganesh/loads-of-logic/tree/main//search"
    click ST "https://github.com/jiganesh/loads-of-logic/tree/main//segmentationTree"
    click SO "https://github.com/jiganesh/loads-of-logic/tree/main//sorting"
    click SK "https://github.com/jiganesh/loads-of-logic/tree/main//stack"
    click STR "https://github.com/jiganesh/loads-of-logic/tree/main//strings"
    click TR "https://github.com/jiganesh/loads-of-logic/tree/main//trees"
    click TRS "https://github.com/jiganesh/loads-of-logic/tree/main//tries"
    click TP "https://github.com/jiganesh/loads-of-logic/tree/main//twoPointers"
    click RD "https://github.com/jiganesh/loads-of-logic/blob/main//README.md"
    click AQ "https://github.com/jiganesh/loads-of-logic/blob/main//AlgorithmicQuestions.md"
    click TC "https://github.com/jiganesh/loads-of-logic/blob/main//TECHNIQUES.md"
    click CC "https://github.com/jiganesh/loads-of-logic/blob/main//CONTRIBUTING.md"
    click CO "https://github.com/jiganesh/loads-of-logic/blob/main//CODE_OF_CONDUCT.md"
    click NO "https://github.com/jiganesh/loads-of-logic/blob/main//NOTES.md"
    click TD2 "https://github.com/jiganesh/loads-of-logic/blob/main//TODO.md"
    click INDEX "https://github.com/jiganesh/loads-of-logic/blob/main//INDEX.html"
    click DEVALL "https://github.com/jiganesh/loads-of-logic/blob/main//.dev"
    click PKG "https://github.com/jiganesh/loads-of-logic/blob/main//package.json"
    click LOCK "https://github.com/jiganesh/loads-of-logic/blob/main//package-lock.json"
    click JEST "https://github.com/jiganesh/loads-of-logic/blob/main//jest.config.js"
    click TESTCFG "https://github.com/jiganesh/loads-of-logic/tree/main//_testconfig"

    %% Styles
    classDef repo fill:#bbdefb,stroke:#1e88e5,stroke-width:2px
    classDef code fill:#90caf9,stroke:#42a5f5
    classDef docs fill:#a5d6a7,stroke:#43a047
    classDef test fill:#ffcc80,stroke:#fb8c00
    classDef dev fill:#ffe082,stroke:#fbc02d
    classDef ci fill:#ffab91,stroke:#e64a19
    classDef host fill:#ce93d8,stroke:#8e24aa
    classDef external fill:#e0e0e0,stroke:#9e9e9e
```
