# tmoertel/practice architecture

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

- Interactive diagram: https://gitdiagram.com/tmoertel/practice
- Repository: https://github.com/tmoertel/practice

## Overview

##### Major Components
- Repository Core: Represent the repository as the main container that “owns” the entire codebase.
- EPI (Elements of Programming Interviews)
- ACM Contest (e.g., acm-contest-1996)
- Daily Coding Problem (dailycodingproblem_com)
- Google Code Jam (with subdirectories per year and round)
- Other challenge groups (careercup, interviewcake, johndcook, etc.)
- Utilities and libraries (misc, libraries, parsers, recursion-to-iteration, two_eggs, etc.)
- Language-specific directories: note that while most of the solutions are in Python, some are in Haskell or other languages.

##### Relationships & Interactions
- Since the project is a repository of independent problem solutions, there are no runtime interactions among the submodules—the main “dependency” is the organization by source or challenge type.

##### Architectural Patterns and Design Principles
- Modularity: Emphasize that each directory acts as a self-contained module with independent scripts for individual problem solutions.

## Diagram (Mermaid)

```mermaid
flowchart TD
    RepoCore["Tom's Practice Repository"]:::repo

    subgraph "Problem Categories"
        EPI["EPI: Algorithmic Interview Problems in Python"]:::module
        ACM["acm-contest-1996: Haskell & C contest challenges"]:::haskell
        DCP["dailycodingproblem_com: Daily Coding Problems"]:::module
        GCJ["google-code-jam: Contest Solutions"]:::module
        GCJ2008["2008: Round Details"]:::module
        CUR["careercup: Challenge Solutions"]:::module
        GIP["google-interview-problems/wretched: Interview Problems"]:::module
        IC["interviewcake: Challenge Solutions"]:::module
        JD["johndcook: Pertinent Scripts"]:::module
        GCJ --> GCJ2008
    end

    subgraph "Utility Modules"
        Libs["libraries: Shared Library Scripts"]:::utility
        Misc["misc: General Utility Scripts"]:::utility
        Parsers["parsers: Parser Combinators & Tests"]:::utility
        RTI["recursion-to-iteration: Recursive-to-Iterative Conversion"]:::utility
        TE["two_eggs: Two Eggs Problem Solution"]:::utility
    end

    subgraph "Other Practice Examples"
        BST["binary_search_tree_find: BST Implementations"]:::module
        PP["programming_praxis: Dutch National Flag Solutions"]:::module
        WHC["water-holding-capacity: Water Holding Capacity"]:::module
        Vietnam["vietnam-grid: Haskell Package"]:::haskell
        FB["facebook_balances: Haskell & Python Challenges"]:::haskell
    end

    RepoCore --> EPI
    RepoCore --> ACM
    RepoCore --> DCP
    RepoCore --> GCJ
    RepoCore --> CUR
    RepoCore --> GIP
    RepoCore --> IC
    RepoCore --> JD
    RepoCore --> Libs
    RepoCore --> Misc
    RepoCore --> Parsers
    RepoCore --> RTI
    RepoCore --> TE
    RepoCore --> BST
    RepoCore --> PP
    RepoCore --> WHC
    RepoCore --> Vietnam
    RepoCore --> FB

    Libs -.-> EPI
    Libs -.-> DCP
    Misc -.-> IC
    Parsers -.-> GIP
    RTI -.-> CUR
    TE -.-> JD

    click RepoCore "https://github.com/tmoertel/practice/blob/master/README.md"
    click EPI "https://github.com/tmoertel/practice/tree/master/EPI/"
    click ACM "https://github.com/tmoertel/practice/tree/master/acm-contest-1996/"
    click DCP "https://github.com/tmoertel/practice/tree/master/dailycodingproblem_com/"
    click GCJ "https://github.com/tmoertel/practice/tree/master/google-code-jam/"
    click CUR "https://github.com/tmoertel/practice/tree/master/careercup/"
    click GIP "https://github.com/tmoertel/practice/tree/master/google-interview-problems/wretched/"
    click IC "https://github.com/tmoertel/practice/tree/master/interviewcake/"
    click JD "https://github.com/tmoertel/practice/tree/master/johndcook/"
    click Libs "https://github.com/tmoertel/practice/tree/master/libraries/"
    click Misc "https://github.com/tmoertel/practice/tree/master/misc/"
    click Parsers "https://github.com/tmoertel/practice/tree/master/parsers/"
    click RTI "https://github.com/tmoertel/practice/tree/master/recursion-to-iteration/"
    click TE "https://github.com/tmoertel/practice/tree/master/two_eggs/"
    click BST "https://github.com/tmoertel/practice/tree/master/binary_search_tree_find/"
    click PP "https://github.com/tmoertel/practice/tree/master/programming_praxis/"
    click WHC "https://github.com/tmoertel/practice/tree/master/water-holding-capacity/"
    click Vietnam "https://github.com/tmoertel/practice/tree/master/vietnam-grid/"
    click FB "https://github.com/tmoertel/practice/tree/master/facebook_balances/"

    classDef repo fill:#ffa500,stroke:#000,stroke-width:2px;
    classDef module fill:#add8e6,stroke:#000,stroke-width:1px;
    classDef utility fill:#90ee90,stroke:#000,stroke-width:1px;
    classDef haskell fill:#ffcccb,stroke:#000,stroke-width:1px;
```
