# santheesh-s/leetcode_problems architecture

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

- Interactive diagram: https://gitdiagram.com/santheesh-s/leetcode_problems
- Repository: https://github.com/santheesh-s/leetcode_problems

## Overview

This repository is a collection of independent LeetCode-style solutions, not a single application: a judge supplies a problem’s inputs to one solution, which computes that problem’s answer. The tree shows many languages and problem families; the graph highlights representative implementations and distinct capabilities rather than implying they form a shared runtime. No README was provided, and the sampled source shows standalone solution methods, not a repository-level dispatcher or judge integration; invocation links are therefore dashed and unverified.

Main entry points: [`solutions/0023-merge-k-sorted-lists/solution.cpp`](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0023-merge-k-sorted-lists/solution.cpp) (Merge k lists), [`solutions/0143-reorder-list/solution.cpp`](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0143-reorder-list/solution.cpp) (Reorder list), [`solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp`](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp) (Reverse even groups), [`solutions/0002-add-two-numbers/solution.cpp`](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0002-add-two-numbers/solution.cpp) (Add numbers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lists["Linked lists"]
  node_list_add["Add numbers<br/>[solution.cpp]"]
  node_list_merge["Merge k lists<br/>[solution.cpp]"]
  node_list_reverse["Reverse range<br/>[solution.cpp]"]
  node_list_reorder["Reorder list<br/>[solution.cpp]"]
  node_list_copy["Copy random list<br/>[solution.cpp]"]
  node_list_even["Reverse even groups<br/>[solution.cpp]"]
end

subgraph group_trees["Trees and graphs"]
  node_tree_bfs["Tree level traversal<br/>[solution.java]"]
  node_tree_cousins["Find cousins<br/>[solution.java]"]
  node_graph_ladder["Word ladder<br/>[solution.cpp]"]
end

subgraph group_arrays["Arrays and strings"]
  node_array_three["Three sum<br/>[solution.c]"]
  node_array_sudoku["Validate Sudoku<br/>[solution.py]"]
  node_array_permute["Permutations<br/>[solution.cpp]"]
  node_array_window["Character window<br/>[solution.java]"]
end

subgraph group_design["Stateful designs"]
  node_design_list["Linked list API<br/>[solution.java]"]
  node_design_bank["Bank operations<br/>[solution.py]"]
end

node_judge(("External judge"))

node_judge -.->|"invokes"| node_list_add
node_judge -.->|"invokes"| node_list_merge
node_judge -.->|"invokes"| node_list_reverse
node_judge -.->|"invokes"| node_list_reorder
node_judge -.->|"invokes"| node_list_copy
node_judge -.->|"invokes"| node_list_even
node_judge -.->|"invokes"| node_tree_bfs
node_judge -.->|"invokes"| node_tree_cousins
node_judge -.->|"invokes"| node_graph_ladder
node_judge -.->|"invokes"| node_array_three
node_judge -.->|"invokes"| node_array_sudoku
node_judge -.->|"invokes"| node_array_permute
node_judge -.->|"invokes"| node_array_window
node_judge -.->|"invokes"| node_design_list
node_judge -.->|"invokes"| node_design_bank
node_list_merge -->|"calls merge"| node_list_merge
node_list_reorder -->|"calls reverse"| node_list_reorder
node_list_even -->|"calls reverse"| node_list_even

click node_list_add "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0002-add-two-numbers/solution.cpp"
click node_list_merge "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0023-merge-k-sorted-lists/solution.cpp"
click node_list_reverse "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0092-reverse-linked-list-ii/solution.cpp"
click node_list_reorder "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0143-reorder-list/solution.cpp"
click node_list_copy "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0138-copy-list-with-random-pointer/solution.cpp"
click node_list_even "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp"
click node_tree_bfs "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0102-binary-tree-level-order-traversal/solution.java"
click node_tree_cousins "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/1035-cousins-in-binary-tree/solution.java"
click node_graph_ladder "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0127-word-ladder/solution.cpp"
click node_array_three "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0015-3sum/solution.c"
click node_array_sudoku "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0036-valid-sudoku/solution.py"
click node_array_permute "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0046-permutations/solution.cpp"
click node_array_window "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0424-longest-repeating-character-replacement/solution.java"
click node_design_list "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0838-design-linked-list/solution.java"
click node_design_bank "https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/2169-simple-bank-system/solution.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_list_add,node_list_merge,node_list_reverse,node_list_reorder,node_list_copy,node_list_even toneBlue
class node_tree_bfs,node_tree_cousins,node_graph_ladder toneAmber
class node_array_three,node_array_sudoku,node_array_permute,node_array_window toneMint
class node_design_list,node_design_bank toneRose
class node_judge toneIndigo
```

## Components

### Linked lists

- [Add numbers](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0002-add-two-numbers/solution.cpp): `solutions/0002-add-two-numbers/solution.cpp`
- [Merge k lists](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0023-merge-k-sorted-lists/solution.cpp): `solutions/0023-merge-k-sorted-lists/solution.cpp`
- [Reverse range](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0092-reverse-linked-list-ii/solution.cpp): `solutions/0092-reverse-linked-list-ii/solution.cpp`
- [Reorder list](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0143-reorder-list/solution.cpp): `solutions/0143-reorder-list/solution.cpp`
- [Copy random list](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0138-copy-list-with-random-pointer/solution.cpp): `solutions/0138-copy-list-with-random-pointer/solution.cpp`
- [Reverse even groups](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp): `solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp`

### Trees and graphs

- [Tree level traversal](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0102-binary-tree-level-order-traversal/solution.java): `solutions/0102-binary-tree-level-order-traversal/solution.java`
- [Find cousins](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/1035-cousins-in-binary-tree/solution.java): `solutions/1035-cousins-in-binary-tree/solution.java`
- [Word ladder](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0127-word-ladder/solution.cpp): `solutions/0127-word-ladder/solution.cpp`

### Arrays and strings

- [Three sum](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0015-3sum/solution.c): `solutions/0015-3sum/solution.c`
- [Validate Sudoku](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0036-valid-sudoku/solution.py): `solutions/0036-valid-sudoku/solution.py`
- [Permutations](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0046-permutations/solution.cpp): `solutions/0046-permutations/solution.cpp`
- [Character window](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0424-longest-repeating-character-replacement/solution.java): `solutions/0424-longest-repeating-character-replacement/solution.java`

### Stateful designs

- [Linked list API](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/0838-design-linked-list/solution.java): `solutions/0838-design-linked-list/solution.java`
- [Bank operations](https://github.com/santheesh-s/leetcode_problems/blob/main/solutions/2169-simple-bank-system/solution.py): `solutions/2169-simple-bank-system/solution.py`

### Other components

- **External judge**

## Connections

- External judge → Add numbers: invokes
- External judge → Merge k lists: invokes
- External judge → Reverse range: invokes
- External judge → Reorder list: invokes
- External judge → Copy random list: invokes
- External judge → Reverse even groups: invokes
- External judge → Tree level traversal: invokes
- External judge → Find cousins: invokes
- External judge → Word ladder: invokes
- External judge → Three sum: invokes
- External judge → Validate Sudoku: invokes
- External judge → Permutations: invokes
- External judge → Character window: invokes
- External judge → Linked list API: invokes
- External judge → Bank operations: invokes
- Merge k lists → Merge k lists: calls merge (evidence: `solutions/0023-merge-k-sorted-lists/solution.cpp`)
- Reorder list → Reorder list: calls reverse (evidence: `solutions/0143-reorder-list/solution.cpp`)
- Reverse even groups → Reverse even groups: calls reverse (evidence: `solutions/2196-reverse-nodes-in-even-length-groups/solution.cpp`)
