# chosule/algorithm-python architecture

> Architecture diagram of the GitHub repository chosule/algorithm-python, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chosule/algorithm-python
- Repository: https://github.com/chosule/algorithm-python

## Overview

This repository is a Python algorithm-study workspace: learners implement categorized solutions, run them against example cases, and generate answer-hidden copies for later practice. Its main domain stages are maintaining solved problems, creating review versions, and attempting those versions; linked-list conversion helpers support a distinct solution family. The README documents the intended test and review workflow, but the referenced test helper is absent from the supplied tree, so test-runner internals and their call relationships are not mapped.

Main entry points: [`scripts/practice.py`](https://github.com/chosule/algorithm-python/blob/master/scripts/practice.py) (Review Generator), [`problems/linked_list`](https://github.com/chosule/algorithm-python/tree/master/problems/linked_list) (Linked List Solutions), [`practice/array`](https://github.com/chosule/algorithm-python/tree/master/practice/array) (Array Review), [`practice/hash`](https://github.com/chosule/algorithm-python/tree/master/practice/hash) (Hash Review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Problem Authoring"]
  node_template["Starter Template<br/>[template.py]"]
end

subgraph group_solutions["Solved Problems"]
  node_problem_array["Array Solutions"]
  node_problem_hash["Hash Solutions"]
  node_problem_heap["Heap Solutions"]
  node_problem_linked["Linked List Solutions"]
  node_problem_queue["Queue Solutions"]
  node_problem_search["Search Solutions"]
  node_problem_stack["Stack Solutions"]
  node_problem_string["String Solutions"]
end

subgraph group_review["Review Practice"]
  node_practice_array["Array Review"]
  node_practice_hash["Hash Review"]
  node_practice_heap["Heap Review"]
  node_practice_linked["Linked List Review"]
  node_practice_queue["Queue Review"]
  node_practice_search["Search Review"]
  node_practice_stack["Stack Review"]
  node_practice_string["String Review"]
  node_generator["Review Generator<br/>[practice.py]"]
end

subgraph group_support["Shared Support"]
  node_linked_util["List Converters<br/>[linked_list.py]"]
end

node_learner(("Learner"))

node_learner -->|"starts from"| node_template
node_learner -->|"solves problems"| node_problem_array
node_learner -->|"solves problems"| node_problem_hash
node_learner -->|"solves problems"| node_problem_heap
node_learner -->|"solves problems"| node_problem_linked
node_learner -->|"solves problems"| node_problem_queue
node_learner -->|"solves problems"| node_problem_search
node_learner -->|"solves problems"| node_problem_stack
node_learner -->|"solves problems"| node_problem_string
node_learner -->|"requests review copy"| node_generator
node_problem_array -->|"source for"| node_practice_array
node_problem_hash -->|"source for"| node_practice_hash
node_problem_heap -->|"source for"| node_practice_heap
node_problem_linked -->|"source for"| node_practice_linked
node_problem_queue -->|"source for"| node_practice_queue
node_problem_search -->|"source for"| node_practice_search
node_problem_stack -->|"source for"| node_practice_stack
node_problem_string -->|"source for"| node_practice_string
node_generator -->|"generates copy"| node_practice_array
node_generator -->|"generates copy"| node_practice_hash
node_generator -->|"generates copy"| node_practice_heap
node_generator -->|"generates copy"| node_practice_linked
node_generator -->|"generates copy"| node_practice_queue
node_generator -->|"generates copy"| node_practice_search
node_generator -->|"generates copy"| node_practice_stack
node_generator -->|"generates copy"| node_practice_string
node_learner -->|"attempts review"| node_practice_array
node_learner -->|"attempts review"| node_practice_hash
node_learner -->|"attempts review"| node_practice_heap
node_learner -->|"attempts review"| node_practice_linked
node_learner -->|"attempts review"| node_practice_queue
node_learner -->|"attempts review"| node_practice_search
node_learner -->|"attempts review"| node_practice_stack
node_learner -->|"attempts review"| node_practice_string
node_problem_linked -->|"converts list data"| node_linked_util

click node_template "https://github.com/chosule/algorithm-python/blob/master/template.py"
click node_problem_array "https://github.com/chosule/algorithm-python/tree/master/problems/array"
click node_problem_hash "https://github.com/chosule/algorithm-python/tree/master/problems/hash"
click node_problem_heap "https://github.com/chosule/algorithm-python/tree/master/problems/heap"
click node_problem_linked "https://github.com/chosule/algorithm-python/tree/master/problems/linked_list"
click node_problem_queue "https://github.com/chosule/algorithm-python/tree/master/problems/queue"
click node_problem_search "https://github.com/chosule/algorithm-python/tree/master/problems/search"
click node_problem_stack "https://github.com/chosule/algorithm-python/tree/master/problems/stack"
click node_problem_string "https://github.com/chosule/algorithm-python/tree/master/problems/string"
click node_practice_array "https://github.com/chosule/algorithm-python/tree/master/practice/array"
click node_practice_hash "https://github.com/chosule/algorithm-python/tree/master/practice/hash"
click node_practice_heap "https://github.com/chosule/algorithm-python/tree/master/practice/heap"
click node_practice_linked "https://github.com/chosule/algorithm-python/tree/master/practice/linked_list"
click node_practice_queue "https://github.com/chosule/algorithm-python/tree/master/practice/queue"
click node_practice_search "https://github.com/chosule/algorithm-python/tree/master/practice/search"
click node_practice_stack "https://github.com/chosule/algorithm-python/tree/master/practice/stack"
click node_practice_string "https://github.com/chosule/algorithm-python/tree/master/practice/string"
click node_generator "https://github.com/chosule/algorithm-python/blob/master/scripts/practice.py"
click node_linked_util "https://github.com/chosule/algorithm-python/blob/master/utils/linked_list.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_template toneBlue
class node_problem_array,node_problem_hash,node_problem_heap,node_problem_linked,node_problem_queue,node_problem_search,node_problem_stack,node_problem_string toneAmber
class node_practice_array,node_practice_hash,node_practice_heap,node_practice_linked,node_practice_queue,node_practice_search,node_practice_stack,node_practice_string,node_generator toneMint
class node_linked_util toneRose
class node_learner toneIndigo
```

## Components

### Problem Authoring

- [Starter Template](https://github.com/chosule/algorithm-python/blob/master/template.py): `template.py`

### Solved Problems

- [Array Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/array): `problems/array`
- [Hash Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/hash): `problems/hash`
- [Heap Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/heap): `problems/heap`
- [Linked List Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/linked_list): `problems/linked_list`
- [Queue Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/queue): `problems/queue`
- [Search Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/search): `problems/search`
- [Stack Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/stack): `problems/stack`
- [String Solutions](https://github.com/chosule/algorithm-python/tree/master/problems/string): `problems/string`

### Review Practice

- [Array Review](https://github.com/chosule/algorithm-python/tree/master/practice/array): `practice/array`
- [Hash Review](https://github.com/chosule/algorithm-python/tree/master/practice/hash): `practice/hash`
- [Heap Review](https://github.com/chosule/algorithm-python/tree/master/practice/heap): `practice/heap`
- [Linked List Review](https://github.com/chosule/algorithm-python/tree/master/practice/linked_list): `practice/linked_list`
- [Queue Review](https://github.com/chosule/algorithm-python/tree/master/practice/queue): `practice/queue`
- [Search Review](https://github.com/chosule/algorithm-python/tree/master/practice/search): `practice/search`
- [Stack Review](https://github.com/chosule/algorithm-python/tree/master/practice/stack): `practice/stack`
- [String Review](https://github.com/chosule/algorithm-python/tree/master/practice/string): `practice/string`
- [Review Generator](https://github.com/chosule/algorithm-python/blob/master/scripts/practice.py): `scripts/practice.py`

### Shared Support

- [List Converters](https://github.com/chosule/algorithm-python/blob/master/utils/linked_list.py): `utils/linked_list.py`

### Other components

- **Learner**

## Connections

- Learner → Starter Template: starts from (evidence: `README.md`)
- Learner → Array Solutions: solves problems (evidence: `README.md`)
- Learner → Hash Solutions: solves problems (evidence: `README.md`)
- Learner → Heap Solutions: solves problems (evidence: `README.md`)
- Learner → Linked List Solutions: solves problems (evidence: `README.md`)
- Learner → Queue Solutions: solves problems (evidence: `README.md`)
- Learner → Search Solutions: solves problems (evidence: `README.md`)
- Learner → Stack Solutions: solves problems (evidence: `README.md`)
- Learner → String Solutions: solves problems (evidence: `README.md`)
- Learner → Review Generator: requests review copy (evidence: `README.md`)
- Array Solutions → Array Review: source for (evidence: `README.md`)
- Hash Solutions → Hash Review: source for (evidence: `README.md`)
- Heap Solutions → Heap Review: source for (evidence: `README.md`)
- Linked List Solutions → Linked List Review: source for (evidence: `README.md`)
- Queue Solutions → Queue Review: source for (evidence: `README.md`)
- Search Solutions → Search Review: source for (evidence: `README.md`)
- Stack Solutions → Stack Review: source for (evidence: `README.md`)
- String Solutions → String Review: source for (evidence: `README.md`)
- Review Generator → Array Review: generates copy (evidence: `README.md`)
- Review Generator → Hash Review: generates copy (evidence: `README.md`)
- Review Generator → Heap Review: generates copy (evidence: `README.md`)
- Review Generator → Linked List Review: generates copy (evidence: `README.md`)
- Review Generator → Queue Review: generates copy (evidence: `README.md`)
- Review Generator → Search Review: generates copy (evidence: `README.md`)
- Review Generator → Stack Review: generates copy (evidence: `README.md`)
- Review Generator → String Review: generates copy (evidence: `README.md`)
- Learner → Array Review: attempts review (evidence: `README.md`)
- Learner → Hash Review: attempts review (evidence: `README.md`)
- Learner → Heap Review: attempts review (evidence: `README.md`)
- Learner → Linked List Review: attempts review (evidence: `README.md`)
- Learner → Queue Review: attempts review (evidence: `README.md`)
- Learner → Search Review: attempts review (evidence: `README.md`)
- Learner → Stack Review: attempts review (evidence: `README.md`)
- Learner → String Review: attempts review (evidence: `README.md`)
- Linked List Solutions → List Converters: converts list data (evidence: `problems/linked_list/merge_k_sorted_lists.py`)
