# bytebytegohq/coding-interview-patterns architecture

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

- Interactive diagram: https://gitdiagram.com/bytebytegohq/coding-interview-patterns
- Repository: https://github.com/bytebytegohq/coding-interview-patterns

## Overview

This repository is a multilingual catalog of coding-interview problem solutions, organized around the book’s 19 algorithm-pattern chapters. A learner chooses a pattern and studies or practices its solution in a supported language; the README also points learners to a separate online practice platform. The sampled files show standalone algorithms rather than a shared runtime or application pipeline, so chapter components are grouped by topic, not connected as sequential processing stages. Evidence for chapter coverage and the external practice option comes from the README and file tree; most individual implementations were not sampled.

Main entry points: [`README.md`](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/README.md) (Problem Solutions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pointer_patterns["Pointer Patterns"]
  node_two_pointers["Two Pointers<br/>[triplet_sum.cpp]"]
  node_fast_slow["Fast And Slow"]
  node_sliding_windows["Sliding Windows"]
end

subgraph group_search_structures["Search Structures"]
  node_hash_maps["Hash Maps And Sets<br/>[zero_striping.cpp]"]
  node_binary_search["Binary Search<br/>[matrix_search.cpp]"]
  node_heaps["Heaps"]
  node_stacks["Stacks"]
end

subgraph group_trees_graphs["Trees And Graphs"]
  node_linked_lists["Linked Lists<br/>[lru_cache.cpp]"]
  node_trees["Trees"]
  node_tries["Tries"]
  node_graphs["Graphs"]
end

subgraph group_algorithmic_techniques["Algorithmic Techniques"]
  node_intervals["Intervals"]
  node_prefix_sums["Prefix Sums"]
  node_dynamic_programming["Dynamic Programming<br/>[knapsack.cpp]"]
  node_greedy["Greedy<br/>[candies.cpp]"]
  node_backtracking["Backtracking<br/>[n_queens.cpp]"]
end

subgraph group_specialized_methods["Specialized Methods"]
  node_sort_search["Sort And Search"]
  node_bit_manipulation["Bit Manipulation"]
  node_math_geometry["Math And Geometry"]
end

node_learner(("Learner"))
node_solutions["Problem Solutions<br/>[README.md]"]
node_practice_platform["Online Practice"]

node_learner -->|"studies solutions"| node_solutions
node_learner -.->|"practices online"| node_practice_platform

click node_solutions "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/README.md"
click node_two_pointers "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Two%20Pointers/triplet_sum.cpp"
click node_fast_slow "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Fast%20and%20Slow%20Pointers/linked_list_midpoint.cpp"
click node_sliding_windows "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Sliding%20Windows/longest_substring_with_unique_chars.cpp"
click node_hash_maps "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Hash%20Maps%20and%20Sets/zero_striping.cpp"
click node_binary_search "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Binary%20Search/matrix_search.cpp"
click node_heaps "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Heaps/k_most_frequent_strings_min_heap.cpp"
click node_stacks "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Stacks/evaluate_expression.cpp"
click node_linked_lists "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Linked%20Lists/lru_cache.cpp"
click node_trees "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Trees/binary_search_tree_validation.cpp"
click node_tries "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Tries/insert_and_search_words_with_wildcards.cpp"
click node_graphs "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Graphs/shortest_transformation_sequence_optimized.cpp"
click node_intervals "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Intervals/merge_overlapping_intervals.cpp"
click node_prefix_sums "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Prefix%20Sums/k_sum_subarrays.cpp"
click node_dynamic_programming "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Dynamic%20Programming/knapsack.cpp"
click node_greedy "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Greedy/candies.cpp"
click node_backtracking "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Backtracking/n_queens.cpp"
click node_sort_search "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Sort%20and%20Search/sort_array_quicksort.cpp"
click node_bit_manipulation "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Bit%20Manipulation/hamming_weights_of_integers.cpp"
click node_math_geometry "https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Math%20and%20Geometry/maximum_collinear_points.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_pointers,node_fast_slow,node_sliding_windows toneBlue
class node_hash_maps,node_binary_search,node_heaps,node_stacks toneAmber
class node_linked_lists,node_trees,node_tries,node_graphs toneMint
class node_intervals,node_prefix_sums,node_dynamic_programming,node_greedy,node_backtracking toneRose
class node_sort_search,node_bit_manipulation,node_math_geometry,node_learner,node_practice_platform toneIndigo
class node_solutions toneTeal
```

## Components

### Pointer Patterns

- [Two Pointers](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Two%20Pointers/triplet_sum.cpp): `cpp/Two Pointers/triplet_sum.cpp`
- [Fast And Slow](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Fast%20and%20Slow%20Pointers/linked_list_midpoint.cpp): `cpp/Fast and Slow Pointers/linked_list_midpoint.cpp`
- [Sliding Windows](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Sliding%20Windows/longest_substring_with_unique_chars.cpp): `cpp/Sliding Windows/longest_substring_with_unique_chars.cpp`

### Search Structures

- [Hash Maps And Sets](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Hash%20Maps%20and%20Sets/zero_striping.cpp): `cpp/Hash Maps and Sets/zero_striping.cpp`
- [Binary Search](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Binary%20Search/matrix_search.cpp): `cpp/Binary Search/matrix_search.cpp`
- [Heaps](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Heaps/k_most_frequent_strings_min_heap.cpp): `cpp/Heaps/k_most_frequent_strings_min_heap.cpp`
- [Stacks](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Stacks/evaluate_expression.cpp): `cpp/Stacks/evaluate_expression.cpp`

### Trees And Graphs

- [Linked Lists](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Linked%20Lists/lru_cache.cpp): `cpp/Linked Lists/lru_cache.cpp`
- [Trees](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Trees/binary_search_tree_validation.cpp): `cpp/Trees/binary_search_tree_validation.cpp`
- [Tries](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Tries/insert_and_search_words_with_wildcards.cpp): `cpp/Tries/insert_and_search_words_with_wildcards.cpp`
- [Graphs](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Graphs/shortest_transformation_sequence_optimized.cpp): `cpp/Graphs/shortest_transformation_sequence_optimized.cpp`

### Algorithmic Techniques

- [Intervals](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Intervals/merge_overlapping_intervals.cpp): `cpp/Intervals/merge_overlapping_intervals.cpp`
- [Prefix Sums](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Prefix%20Sums/k_sum_subarrays.cpp): `cpp/Prefix Sums/k_sum_subarrays.cpp`
- [Dynamic Programming](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Dynamic%20Programming/knapsack.cpp): `cpp/Dynamic Programming/knapsack.cpp`
- [Greedy](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Greedy/candies.cpp): `cpp/Greedy/candies.cpp`
- [Backtracking](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Backtracking/n_queens.cpp): `cpp/Backtracking/n_queens.cpp`

### Specialized Methods

- [Sort And Search](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Sort%20and%20Search/sort_array_quicksort.cpp): `cpp/Sort and Search/sort_array_quicksort.cpp`
- [Bit Manipulation](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Bit%20Manipulation/hamming_weights_of_integers.cpp): `cpp/Bit Manipulation/hamming_weights_of_integers.cpp`
- [Math And Geometry](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/cpp/Math%20and%20Geometry/maximum_collinear_points.cpp): `cpp/Math and Geometry/maximum_collinear_points.cpp`

### Other components

- **Learner**
- [Problem Solutions](https://github.com/bytebytegohq/coding-interview-patterns/blob/main/README.md): `README.md`
- **Online Practice**

## Connections

- Learner → Problem Solutions: studies solutions (evidence: `README.md`)
- Learner → Online Practice: practices online (evidence: `README.md`)
