# geekxh/hello-algorithm architecture

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

- Interactive diagram: https://gitdiagram.com/geekxh/hello-algorithm
- Repository: https://github.com/geekxh/hello-algorithm

## Overview

This repository is an algorithm-learning resource, not an integrated application. The README describes a study journey spanning foundations, illustrated LeetCode problems, interview preparation, and computer-science topics; the supplied tree specifically exposes standalone 剑指 Offer Java solutions. A learner studies a topic and applies an individual solution to a problem. These classes have no demonstrated shared runtime or orchestration, so the graph groups representative solution areas without inventing calls between them. The README supports the learning-resource workflow; sampled source demonstrates individual algorithms, not a connected execution flow.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays and Search"]
  node_array_search["Array search<br/>[Solution.java]"]
  node_matrix_search["Matrix search<br/>[Solution.java]"]
  node_matrix_print["Matrix traversal<br/>[Solution.java]"]
  node_sorted_range["Sorted range lookup<br/>[Solution.java]"]
  node_window_max["Window maximum<br/>[Solution.java]"]
end

subgraph group_lists["Lists and Stacks"]
  node_list_reverse["List reversal<br/>[Solution.java]"]
  node_list_merge["Sorted-list merge<br/>[Solution.java]"]
  node_list_cycle["Cycle entry<br/>[Solution.java]"]
  node_two_stack_queue["Queue via stacks<br/>[Solution.java]"]
end

subgraph group_trees["Tree Algorithms"]
  node_tree_construct["Tree reconstruction<br/>[Solution.java]"]
  node_tree_zigzag["Zigzag traversal<br/>[Solution.java]"]
  node_tree_serialize["Tree serialization<br/>[Solution.java]"]
  node_tree_substructure["Tree matching<br/>[Solution.java]"]
end

subgraph group_strings["Strings and Traversal"]
  node_string_path["Matrix string path<br/>[Solution.java]"]
  node_numeric_parse["Numeric parsing<br/>[Solution1.java]"]
  node_permutations["String permutations<br/>[Solution.java]"]
end

node_learner(("Algorithm learner"))

click node_array_search "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/03_02_DuplicationInArrayNoEdit/Solution.java"
click node_matrix_search "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/04_FindInPartiallySortedMatrix/Solution.java"
click node_matrix_print "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/29_PrintMatrix/Solution.java"
click node_sorted_range "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/53_01_NumberOfK/Solution.java"
click node_window_max "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/59_01_MaxInSlidingWindow/Solution.java"
click node_list_reverse "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/24_ReverseList/Solution.java"
click node_list_merge "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/25_MergeSortedLists/Solution.java"
click node_list_cycle "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/23_EntryNodeInListLoop/Solution.java"
click node_two_stack_queue "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/09_01_QueueWithTwoStacks/Solution.java"
click node_tree_construct "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/07_ConstructBinaryTree/Solution.java"
click node_tree_zigzag "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/32_03_PrintTreesInZigzag/Solution.java"
click node_tree_serialize "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/37_SerializeBinaryTrees/Solution.java"
click node_tree_substructure "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/26_SubstructureInTree/Solution.java"
click node_string_path "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/12_StringPathInMatrix/Solution.java"
click node_numeric_parse "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/20_NumericStrings/Solution1.java"
click node_permutations "https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/38_StringPermutation/Solution.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_array_search,node_matrix_search,node_matrix_print,node_sorted_range,node_window_max toneBlue
class node_list_reverse,node_list_merge,node_list_cycle,node_two_stack_queue toneAmber
class node_tree_construct,node_tree_zigzag,node_tree_serialize,node_tree_substructure toneMint
class node_string_path,node_numeric_parse,node_permutations toneRose
class node_learner toneIndigo
```

## Components

### Arrays and Search

- [Array search](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/03_02_DuplicationInArrayNoEdit/Solution.java): `算法读物/剑指offer/03_02_DuplicationInArrayNoEdit/Solution.java`
- [Matrix search](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/04_FindInPartiallySortedMatrix/Solution.java): `算法读物/剑指offer/04_FindInPartiallySortedMatrix/Solution.java`
- [Matrix traversal](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/29_PrintMatrix/Solution.java): `算法读物/剑指offer/29_PrintMatrix/Solution.java`
- [Sorted range lookup](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/53_01_NumberOfK/Solution.java): `算法读物/剑指offer/53_01_NumberOfK/Solution.java`
- [Window maximum](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/59_01_MaxInSlidingWindow/Solution.java): `算法读物/剑指offer/59_01_MaxInSlidingWindow/Solution.java`

### Lists and Stacks

- [List reversal](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/24_ReverseList/Solution.java): `算法读物/剑指offer/24_ReverseList/Solution.java`
- [Sorted-list merge](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/25_MergeSortedLists/Solution.java): `算法读物/剑指offer/25_MergeSortedLists/Solution.java`
- [Cycle entry](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/23_EntryNodeInListLoop/Solution.java): `算法读物/剑指offer/23_EntryNodeInListLoop/Solution.java`
- [Queue via stacks](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/09_01_QueueWithTwoStacks/Solution.java): `算法读物/剑指offer/09_01_QueueWithTwoStacks/Solution.java`

### Tree Algorithms

- [Tree reconstruction](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/07_ConstructBinaryTree/Solution.java): `算法读物/剑指offer/07_ConstructBinaryTree/Solution.java`
- [Zigzag traversal](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/32_03_PrintTreesInZigzag/Solution.java): `算法读物/剑指offer/32_03_PrintTreesInZigzag/Solution.java`
- [Tree serialization](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/37_SerializeBinaryTrees/Solution.java): `算法读物/剑指offer/37_SerializeBinaryTrees/Solution.java`
- [Tree matching](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/26_SubstructureInTree/Solution.java): `算法读物/剑指offer/26_SubstructureInTree/Solution.java`

### Strings and Traversal

- [Matrix string path](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/12_StringPathInMatrix/Solution.java): `算法读物/剑指offer/12_StringPathInMatrix/Solution.java`
- [Numeric parsing](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/20_NumericStrings/Solution1.java): `算法读物/剑指offer/20_NumericStrings/Solution1.java`
- [String permutations](https://github.com/geekxh/hello-algorithm/blob/master/%E7%AE%97%E6%B3%95%E8%AF%BB%E7%89%A9/%E5%89%91%E6%8C%87offer/38_StringPermutation/Solution.java): `算法读物/剑指offer/38_StringPermutation/Solution.java`

### Other components

- **Algorithm learner**
