# gana9989/leetcode architecture

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

- Interactive diagram: https://gitdiagram.com/gana9989/leetcode
- Repository: https://github.com/gana9989/leetcode

## Overview

This repository is a personal daily LeetCode solution log, not an integrated runtime application. Its documented workflow is to solve a problem on LeetCode, have LeetSync push the accepted solution, and update the log. The solution files are independent implementations grouped by algorithm topic; they do not call one another. The workflow edges follow the README, while unsampled solutions are represented by their exact paths without inferred behavior.

Main entry points: [`24-swap-nodes-in-pairs/swap-nodes-in-pairs.cpp`](https://github.com/gana9989/leetcode/blob/main/24-swap-nodes-in-pairs/swap-nodes-in-pairs.cpp) (Swap Node Pairs), [`README.md`](https://github.com/gana9989/leetcode/blob/main/README.md) (Solve log)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays &amp; Windows"]
  node_two_sum["Two Sum<br/>[two-sum.cpp]"]
  node_longest_substring["Longest Substring"]
  node_maximum_subarray["Maximum Subarray"]
end

subgraph group_stacks["Stack Problems"]
  node_valid_parentheses["Valid Parentheses"]
  node_stock_span["Online Stock Span"]
end

subgraph group_lists["Linked Lists"]
  node_merge_lists["Merge Sorted Lists"]
  node_swap_pairs["Swap Node Pairs"]
  node_reverse_k["Reverse K Groups"]
end

subgraph group_numbers["Number Problems"]
  node_reverse_integer["Reverse Integer"]
  node_palindrome_number["Palindrome Number"]
end

node_solver(("Daily solver"))
node_leetcode["LeetCode"]
node_leetsync["LeetSync"]
node_activity_log["Solve log<br/>[README.md]"]

node_solver -->|"solves problem"| node_leetcode
node_leetcode -->|"provides accepted solve"| node_leetsync
node_leetsync -->|"pushes solution"| node_swap_pairs
node_solver -->|"updates log"| node_activity_log

click node_activity_log "https://github.com/gana9989/leetcode/blob/main/README.md"
click node_two_sum "https://github.com/gana9989/leetcode/blob/main/1-two-sum/two-sum.cpp"
click node_longest_substring "https://github.com/gana9989/leetcode/blob/main/3-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.py"
click node_maximum_subarray "https://github.com/gana9989/leetcode/blob/main/53-maximum-subarray/maximum-subarray.cpp"
click node_valid_parentheses "https://github.com/gana9989/leetcode/blob/main/20-valid-parentheses/valid-parentheses.cpp"
click node_stock_span "https://github.com/gana9989/leetcode/blob/main/937-online-stock-span/online-stock-span.cpp"
click node_merge_lists "https://github.com/gana9989/leetcode/blob/main/21-merge-two-sorted-lists/merge-two-sorted-lists.cpp"
click node_swap_pairs "https://github.com/gana9989/leetcode/blob/main/24-swap-nodes-in-pairs/swap-nodes-in-pairs.cpp"
click node_reverse_k "https://github.com/gana9989/leetcode/blob/main/25-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp"
click node_reverse_integer "https://github.com/gana9989/leetcode/tree/main/7-reverse-integer"
click node_palindrome_number "https://github.com/gana9989/leetcode/blob/main/9-palindrome-number/palindrome-number.cpp"

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_two_sum,node_longest_substring,node_maximum_subarray toneBlue
class node_valid_parentheses,node_stock_span toneAmber
class node_merge_lists,node_swap_pairs,node_reverse_k toneMint
class node_reverse_integer,node_palindrome_number toneRose
class node_solver,node_leetcode,node_leetsync toneIndigo
class node_activity_log toneTeal
```

## Components

### Arrays & Windows

- [Two Sum](https://github.com/gana9989/leetcode/blob/main/1-two-sum/two-sum.cpp): `1-two-sum/two-sum.cpp`
- [Longest Substring](https://github.com/gana9989/leetcode/blob/main/3-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.py): `3-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.py`
- [Maximum Subarray](https://github.com/gana9989/leetcode/blob/main/53-maximum-subarray/maximum-subarray.cpp): `53-maximum-subarray/maximum-subarray.cpp`

### Stack Problems

- [Valid Parentheses](https://github.com/gana9989/leetcode/blob/main/20-valid-parentheses/valid-parentheses.cpp): `20-valid-parentheses/valid-parentheses.cpp`
- [Online Stock Span](https://github.com/gana9989/leetcode/blob/main/937-online-stock-span/online-stock-span.cpp): `937-online-stock-span/online-stock-span.cpp`

### Linked Lists

- [Merge Sorted Lists](https://github.com/gana9989/leetcode/blob/main/21-merge-two-sorted-lists/merge-two-sorted-lists.cpp): `21-merge-two-sorted-lists/merge-two-sorted-lists.cpp`
- [Swap Node Pairs](https://github.com/gana9989/leetcode/blob/main/24-swap-nodes-in-pairs/swap-nodes-in-pairs.cpp): `24-swap-nodes-in-pairs/swap-nodes-in-pairs.cpp`
- [Reverse K Groups](https://github.com/gana9989/leetcode/blob/main/25-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp): `25-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp`

### Number Problems

- [Reverse Integer](https://github.com/gana9989/leetcode/tree/main/7-reverse-integer): `7-reverse-integer`
- [Palindrome Number](https://github.com/gana9989/leetcode/blob/main/9-palindrome-number/palindrome-number.cpp): `9-palindrome-number/palindrome-number.cpp`

### Other components

- **Daily solver**
- **LeetCode**
- **LeetSync**
- [Solve log](https://github.com/gana9989/leetcode/blob/main/README.md): `README.md`

## Connections

- Daily solver → LeetCode: solves problem (evidence: `README.md`)
- LeetCode → LeetSync: provides accepted solve (evidence: `README.md`)
- LeetSync → Swap Node Pairs: pushes solution (evidence: `README.md`)
- Daily solver → Solve log: updates log (evidence: `README.md`)
