# duh-vanshh/leetcode-problems architecture

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

- Interactive diagram: https://gitdiagram.com/duh-vanshh/leetcode-problems
- Repository: https://github.com/duh-vanshh/leetcode-problems

## Overview

This repository is a collection of independent LeetCode solutions, not an integrated application. The user workflow is to choose a problem, submit its solution to the LeetCode judge, and receive the judge’s result; the repository contains no shared runtime or orchestration layer. Nodes represent problem solutions, using a representative source path where multiple language versions exist. The README documents topic coverage, but the submission-and-judging relationship is not shown in source, so no runtime edges are asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays and Search"]
  node_two_sum["Two Sum<br/>[0001-two-sum.cpp]"]
  node_three_sum["3Sum<br/>[0015-3sum.cpp]"]
  node_remove_duplicates_array["Remove Duplicates"]
  node_remove_element["Remove Element"]
  node_search_insert["Search Insert"]
  node_missing_number["Missing Number"]
  node_move_zeroes["Move Zeroes"]
end

subgraph group_lists["Linked Lists"]
  node_add_two_numbers["Add Two Numbers"]
  node_merge_lists["Merge Sorted Lists"]
  node_remove_duplicates_list["Remove List Duplicates"]
end

subgraph group_math["Math"]
  node_palindrome_number["Palindrome Number"]
  node_sqrtx["Integer Square Root<br/>[0069-sqrtx.cpp]"]
  node_sum_digits["Sum Digits Base K"]
end

node_user(("Problem Solver"))

click node_two_sum "https://github.com/duh-vanshh/leetcode-problems/blob/main/0001-two-sum/0001-two-sum.cpp"
click node_three_sum "https://github.com/duh-vanshh/leetcode-problems/blob/main/0015-3sum/0015-3sum.cpp"
click node_remove_duplicates_array "https://github.com/duh-vanshh/leetcode-problems/blob/main/0026-remove-duplicates-from-sorted-array/0026-remove-duplicates-from-sorted-array.py"
click node_remove_element "https://github.com/duh-vanshh/leetcode-problems/blob/main/0027-remove-element/0027-remove-element.py"
click node_search_insert "https://github.com/duh-vanshh/leetcode-problems/blob/main/0035-search-insert-position/0035-search-insert-position.py"
click node_missing_number "https://github.com/duh-vanshh/leetcode-problems/blob/main/0268-missing-number/0268-missing-number.cpp"
click node_move_zeroes "https://github.com/duh-vanshh/leetcode-problems/blob/main/0283-move-zeroes/0283-move-zeroes.cpp"
click node_add_two_numbers "https://github.com/duh-vanshh/leetcode-problems/blob/main/0002-add-two-numbers/0002-add-two-numbers.cpp"
click node_merge_lists "https://github.com/duh-vanshh/leetcode-problems/blob/main/0021-merge-two-sorted-lists/0021-merge-two-sorted-lists.cpp"
click node_remove_duplicates_list "https://github.com/duh-vanshh/leetcode-problems/blob/main/0083-remove-duplicates-from-sorted-list/0083-remove-duplicates-from-sorted-list.cpp"
click node_palindrome_number "https://github.com/duh-vanshh/leetcode-problems/blob/main/0009-palindrome-number/0009-palindrome-number.py"
click node_sqrtx "https://github.com/duh-vanshh/leetcode-problems/blob/main/0069-sqrtx/0069-sqrtx.cpp"
click node_sum_digits "https://github.com/duh-vanshh/leetcode-problems/blob/main/1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.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_three_sum,node_remove_duplicates_array,node_remove_element,node_search_insert,node_missing_number,node_move_zeroes toneBlue
class node_add_two_numbers,node_merge_lists,node_remove_duplicates_list toneAmber
class node_palindrome_number,node_sqrtx,node_sum_digits toneMint
class node_user toneIndigo
```

## Components

### Arrays and Search

- [Two Sum](https://github.com/duh-vanshh/leetcode-problems/blob/main/0001-two-sum/0001-two-sum.cpp): `0001-two-sum/0001-two-sum.cpp`
- [3Sum](https://github.com/duh-vanshh/leetcode-problems/blob/main/0015-3sum/0015-3sum.cpp): `0015-3sum/0015-3sum.cpp`
- [Remove Duplicates](https://github.com/duh-vanshh/leetcode-problems/blob/main/0026-remove-duplicates-from-sorted-array/0026-remove-duplicates-from-sorted-array.py): `0026-remove-duplicates-from-sorted-array/0026-remove-duplicates-from-sorted-array.py`
- [Remove Element](https://github.com/duh-vanshh/leetcode-problems/blob/main/0027-remove-element/0027-remove-element.py): `0027-remove-element/0027-remove-element.py`
- [Search Insert](https://github.com/duh-vanshh/leetcode-problems/blob/main/0035-search-insert-position/0035-search-insert-position.py): `0035-search-insert-position/0035-search-insert-position.py`
- [Missing Number](https://github.com/duh-vanshh/leetcode-problems/blob/main/0268-missing-number/0268-missing-number.cpp): `0268-missing-number/0268-missing-number.cpp`
- [Move Zeroes](https://github.com/duh-vanshh/leetcode-problems/blob/main/0283-move-zeroes/0283-move-zeroes.cpp): `0283-move-zeroes/0283-move-zeroes.cpp`

### Linked Lists

- [Add Two Numbers](https://github.com/duh-vanshh/leetcode-problems/blob/main/0002-add-two-numbers/0002-add-two-numbers.cpp): `0002-add-two-numbers/0002-add-two-numbers.cpp`
- [Merge Sorted Lists](https://github.com/duh-vanshh/leetcode-problems/blob/main/0021-merge-two-sorted-lists/0021-merge-two-sorted-lists.cpp): `0021-merge-two-sorted-lists/0021-merge-two-sorted-lists.cpp`
- [Remove List Duplicates](https://github.com/duh-vanshh/leetcode-problems/blob/main/0083-remove-duplicates-from-sorted-list/0083-remove-duplicates-from-sorted-list.cpp): `0083-remove-duplicates-from-sorted-list/0083-remove-duplicates-from-sorted-list.cpp`

### Math

- [Palindrome Number](https://github.com/duh-vanshh/leetcode-problems/blob/main/0009-palindrome-number/0009-palindrome-number.py): `0009-palindrome-number/0009-palindrome-number.py`
- [Integer Square Root](https://github.com/duh-vanshh/leetcode-problems/blob/main/0069-sqrtx/0069-sqrtx.cpp): `0069-sqrtx/0069-sqrtx.cpp`
- [Sum Digits Base K](https://github.com/duh-vanshh/leetcode-problems/blob/main/1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.cpp): `1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.cpp`

### Other components

- **Problem Solver**
