# doitcodingtest/java architecture

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

- Interactive diagram: https://gitdiagram.com/doitcodingtest/java
- Repository: https://github.com/doitcodingtest/java

## Overview

This repository is a collection of independent Java solutions to algorithm problems, not a single application: each program reads its own input, applies a problem-specific algorithm, and prints a result. The graph groups solutions by domain; it does not imply shared runtime components or calls between problems. Sampled implementations show representative techniques, while directory-level nodes preserve other listed problem areas whose internals were not sampled.

Main entry points: [`그래프`](https://github.com/doitcodingtest/java/tree/main/%EA%B7%B8%EB%9E%98%ED%94%84) (Graph problems), [`트리`](https://github.com/doitcodingtest/java/tree/main/%ED%8A%B8%EB%A6%AC) (Tree problems), [`자료구조`](https://github.com/doitcodingtest/java/tree/main/%EC%9E%90%EB%A3%8C%EA%B5%AC%EC%A1%B0) (Data structures), [`탐색`](https://github.com/doitcodingtest/java/tree/main/%ED%83%90%EC%83%89) (Search problems)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_graphs["Graph algorithms"]
  node_graph["Graph problems"]
  node_tree["Tree problems"]
end

subgraph group_structures["Structures and traversal"]
  node_structures["Data structures"]
  node_search["Search problems"]
end

subgraph group_optimization["Optimization and combinatorics"]
  node_dp["Dynamic programming"]
  node_greedy["Greedy problems"]
  node_combination["Combinatorics"]
  node_youtube["Fibonacci solution<br/>[BOJ2749.java]"]
end

subgraph group_math["Math and geometry"]
  node_number["Number theory"]
  node_geometry["Geometry problems"]
end

subgraph group_ordering["Ordering"]
  node_sorting["Sorting problems"]
end

node_stdin(("Problem input"))
node_stdout(("Printed result"))

node_stdin -->|"reads input"| node_graph
node_graph -->|"prints answer"| node_stdout
node_stdin -->|"reads input"| node_tree
node_tree -->|"prints answers"| node_stdout
node_stdin -->|"reads input"| node_structures
node_structures -->|"prints count"| node_stdout
node_stdin -->|"reads input"| node_search
node_search -->|"prints answer"| node_stdout
node_stdin -->|"reads input"| node_dp
node_dp -->|"prints answer"| node_stdout
node_stdin -->|"reads input"| node_greedy
node_greedy -->|"prints answer"| node_stdout
node_stdin -->|"reads input"| node_combination
node_combination -->|"prints result"| node_stdout
node_stdin -->|"reads input"| node_number
node_number -->|"prints result"| node_stdout
node_stdin -->|"reads input"| node_geometry
node_geometry -->|"prints groups"| node_stdout
node_stdin -->|"reads input"| node_sorting
node_sorting -->|"prints result"| node_stdout
node_stdin -->|"reads input"| node_youtube
node_youtube -->|"prints Fibonacci value"| node_stdout

click node_graph "https://github.com/doitcodingtest/java/tree/main/%EA%B7%B8%EB%9E%98%ED%94%84"
click node_tree "https://github.com/doitcodingtest/java/tree/main/%ED%8A%B8%EB%A6%AC"
click node_structures "https://github.com/doitcodingtest/java/tree/main/%EC%9E%90%EB%A3%8C%EA%B5%AC%EC%A1%B0"
click node_search "https://github.com/doitcodingtest/java/tree/main/%ED%83%90%EC%83%89"
click node_dp "https://github.com/doitcodingtest/java/tree/main/%EB%8F%99%EC%A0%81%EA%B3%84%ED%9A%8D%EB%B2%95"
click node_greedy "https://github.com/doitcodingtest/java/tree/main/%EA%B7%B8%EB%A6%AC%EB%94%94"
click node_combination "https://github.com/doitcodingtest/java/tree/main/%EC%A1%B0%ED%95%A9"
click node_number "https://github.com/doitcodingtest/java/tree/main/%EC%A0%95%EC%88%98%EB%A1%A0"
click node_geometry "https://github.com/doitcodingtest/java/tree/main/%EA%B8%B0%ED%95%98"
click node_sorting "https://github.com/doitcodingtest/java/tree/main/%EC%A0%95%EB%A0%AC"
click node_youtube "https://github.com/doitcodingtest/java/blob/main/youtube/BOJ2749.java"

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_graph,node_tree toneBlue
class node_structures,node_search toneAmber
class node_dp,node_greedy,node_combination,node_youtube toneMint
class node_number,node_geometry toneRose
class node_sorting,node_stdin,node_stdout toneIndigo
```

## Components

### Graph algorithms

- [Graph problems](https://github.com/doitcodingtest/java/tree/main/%EA%B7%B8%EB%9E%98%ED%94%84): `그래프`
- [Tree problems](https://github.com/doitcodingtest/java/tree/main/%ED%8A%B8%EB%A6%AC): `트리`

### Structures and traversal

- [Data structures](https://github.com/doitcodingtest/java/tree/main/%EC%9E%90%EB%A3%8C%EA%B5%AC%EC%A1%B0): `자료구조`
- [Search problems](https://github.com/doitcodingtest/java/tree/main/%ED%83%90%EC%83%89): `탐색`

### Optimization and combinatorics

- [Dynamic programming](https://github.com/doitcodingtest/java/tree/main/%EB%8F%99%EC%A0%81%EA%B3%84%ED%9A%8D%EB%B2%95): `동적계획법`
- [Greedy problems](https://github.com/doitcodingtest/java/tree/main/%EA%B7%B8%EB%A6%AC%EB%94%94): `그리디`
- [Combinatorics](https://github.com/doitcodingtest/java/tree/main/%EC%A1%B0%ED%95%A9): `조합`
- [Fibonacci solution](https://github.com/doitcodingtest/java/blob/main/youtube/BOJ2749.java): `youtube/BOJ2749.java`

### Math and geometry

- [Number theory](https://github.com/doitcodingtest/java/tree/main/%EC%A0%95%EC%88%98%EB%A1%A0): `정수론`
- [Geometry problems](https://github.com/doitcodingtest/java/tree/main/%EA%B8%B0%ED%95%98): `기하`

### Ordering

- [Sorting problems](https://github.com/doitcodingtest/java/tree/main/%EC%A0%95%EB%A0%AC): `정렬`

### Other components

- **Problem input**
- **Printed result**

## Connections

- Problem input → Graph problems: reads input (evidence: `그래프/P1916_최소비용구하기.java`)
- Graph problems → Printed result: prints answer (evidence: `그래프/P1916_최소비용구하기.java`)
- Problem input → Tree problems: reads input (evidence: `트리/P11438_LCA2.java`)
- Tree problems → Printed result: prints answers (evidence: `트리/P11438_LCA2.java`)
- Problem input → Data structures: reads input (evidence: `자료구조/P12891_DNA비밀번호.java`)
- Data structures → Printed result: prints count (evidence: `자료구조/P12891_DNA비밀번호.java`)
- Problem input → Search problems: reads input (evidence: `탐색/P17136_색종이붙이기.java`)
- Search problems → Printed result: prints answer (evidence: `탐색/P17136_색종이붙이기.java`)
- Problem input → Dynamic programming: reads input (evidence: `동적계획법/P2342_DDR.java`)
- Dynamic programming → Printed result: prints answer (evidence: `동적계획법/P2342_DDR.java`)
- Problem input → Greedy problems: reads input (evidence: `그리디/P1744_수묶기.java`)
- Greedy problems → Printed result: prints answer (evidence: `그리디/P1744_수묶기.java`)
- Problem input → Combinatorics: reads input (evidence: `조합/P1722_순열의순서.java`)
- Combinatorics → Printed result: prints result (evidence: `조합/P1722_순열의순서.java`)
- Problem input → Number theory: reads input (evidence: `정수론/P1033_칵테일.java`)
- Number theory → Printed result: prints result (evidence: `정수론/P1033_칵테일.java`)
- Problem input → Geometry problems: reads input (evidence: `기하/P2162_선분그룹.java`)
- Geometry problems → Printed result: prints groups (evidence: `기하/P2162_선분그룹.java`)
- Problem input → Sorting problems: reads input (evidence: `정렬/P11004_K번째수.java`)
- Sorting problems → Printed result: prints result (evidence: `정렬/P11004_K번째수.java`)
- Problem input → Fibonacci solution: reads input (evidence: `youtube/BOJ2749.java`)
- Fibonacci solution → Printed result: prints Fibonacci value (evidence: `youtube/BOJ2749.java`)
