# donnemartin/interactive-coding-challenges architecture

> Architecture diagram of the GitHub repository donnemartin/interactive-coding-challenges, 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/donnemartin/interactive-coding-challenges
- Repository: https://github.com/donnemartin/interactive-coding-challenges

## Overview

This repository is an educational collection of interactive, test-driven coding interview challenges, plus reference implementations of algorithms and data structures. The learner workflow is to work through a challenge notebook—problem, constraints, tests, and code—then consult a solution notebook for algorithms, complexity discussion, and working reference solutions. The graph preserves the README’s major challenge domains and reference-implementation capabilities. The supplied tree does not include the notebooks themselves, so notebook components use their existing domain directories as paths; relationships are limited to those documented in the README.

Main entry points: [`arrays_strings`](https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings) (Challenge notebook), [`graphs_trees`](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees) (Data structure references), [`sorting_searching`](https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching) (Algorithm references), [`linked_lists`](https://github.com/donnemartin/interactive-coding-challenges/tree/master/linked_lists) (Linked lists)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Challenge learning"]
  node_challenge["Challenge notebook"]
  node_solution["Solution notebook"]
end

subgraph group_domains["Challenge domains"]
  node_arrays["Arrays and strings"]
  node_linked["Linked lists"]
  node_stacks["Stacks and queues"]
  node_graphs["Graphs and trees"]
  node_sorting["Sorting and search"]
  node_recursion["Recursion and DP"]
  node_math["Math and probability"]
  node_bits["Bit manipulation"]
  node_judges["Online judges"]
end

subgraph group_structures["Data structures"]
  node_dsrefs["Data structure references"]
  node_linkedlist["Linked list<br/>[linked_list.py]"]
  node_stack["Stack<br/>[stack.py]"]
  node_queue["Queue<br/>[queue_list.py]"]
  node_bst["Binary search tree<br/>[bst.py]"]
  node_graph["Graph<br/>[graph.py]"]
  node_heap["Min heap<br/>[min_heap.py]"]
  node_trie["Trie<br/>[trie.py]"]
  node_priority["Priority queue<br/>[priority_queue.py]"]
end

subgraph group_algorithms["Algorithms"]
  node_algrefs["Algorithm references"]
  node_toposort["Topological sort"]
  node_traversal["Tree and graph traversal"]
  node_shortest["Shortest paths"]
  node_sortingalg["Sorting algorithms"]
  node_knapsack["Knapsack algorithms"]
end

node_learner(("Learner"))

node_learner -->|"works through"| node_challenge
node_challenge -->|"consults solution"| node_solution
node_challenge -->|"solves challenges"| node_arrays
node_challenge -->|"solves challenges"| node_linked
node_challenge -->|"solves challenges"| node_stacks
node_challenge -->|"solves challenges"| node_graphs
node_challenge -->|"solves challenges"| node_sorting
node_challenge -->|"solves challenges"| node_recursion
node_challenge -->|"solves challenges"| node_math
node_challenge -->|"solves challenges"| node_bits
node_challenge -->|"solves challenges"| node_judges
node_solution -->|"provides references"| node_dsrefs
node_solution -->|"provides references"| node_algrefs
node_dsrefs -->|"includes"| node_linkedlist
node_dsrefs -->|"includes"| node_stack
node_dsrefs -->|"includes"| node_queue
node_dsrefs -->|"includes"| node_bst
node_dsrefs -->|"includes"| node_graph
node_dsrefs -->|"includes"| node_heap
node_dsrefs -->|"includes"| node_trie
node_dsrefs -->|"includes"| node_priority
node_algrefs -->|"includes"| node_toposort
node_algrefs -->|"includes"| node_traversal
node_algrefs -->|"includes"| node_shortest
node_algrefs -->|"includes"| node_sortingalg
node_algrefs -->|"includes"| node_knapsack

click node_challenge "https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings"
click node_solution "https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings"
click node_arrays "https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings"
click node_linked "https://github.com/donnemartin/interactive-coding-challenges/tree/master/linked_lists"
click node_stacks "https://github.com/donnemartin/interactive-coding-challenges/tree/master/stacks_queues"
click node_graphs "https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees"
click node_sorting "https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching"
click node_recursion "https://github.com/donnemartin/interactive-coding-challenges/tree/master/recursion_dynamic"
click node_math "https://github.com/donnemartin/interactive-coding-challenges/tree/master/math_probability"
click node_bits "https://github.com/donnemartin/interactive-coding-challenges/tree/master/bit_manipulation"
click node_judges "https://github.com/donnemartin/interactive-coding-challenges/tree/master/online_judges"
click node_dsrefs "https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees"
click node_linkedlist "https://github.com/donnemartin/interactive-coding-challenges/blob/master/linked_lists/linked_list/linked_list.py"
click node_stack "https://github.com/donnemartin/interactive-coding-challenges/blob/master/stacks_queues/stack/stack.py"
click node_queue "https://github.com/donnemartin/interactive-coding-challenges/blob/master/stacks_queues/queue_list/queue_list.py"
click node_bst "https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/bst/bst.py"
click node_graph "https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/graph/graph.py"
click node_heap "https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/min_heap/min_heap.py"
click node_trie "https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/trie/trie.py"
click node_priority "https://github.com/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/priority_queue/priority_queue.py"
click node_algrefs "https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching"
click node_toposort "https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees/graph_build_order"
click node_traversal "https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees"
click node_shortest "https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees/graph_shortest_path"
click node_sortingalg "https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching"
click node_knapsack "https://github.com/donnemartin/interactive-coding-challenges/tree/master/recursion_dynamic"

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_challenge,node_solution toneBlue
class node_arrays,node_linked,node_stacks,node_graphs,node_sorting,node_recursion,node_math,node_bits,node_judges toneAmber
class node_dsrefs,node_linkedlist,node_stack,node_queue,node_bst,node_graph,node_heap,node_trie,node_priority toneMint
class node_algrefs,node_toposort,node_traversal,node_shortest,node_sortingalg,node_knapsack toneRose
class node_learner toneIndigo
```

## Components

### Challenge learning

- [Challenge notebook](https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings): `arrays_strings`
- [Solution notebook](https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings): `arrays_strings`

### Challenge domains

- [Arrays and strings](https://github.com/donnemartin/interactive-coding-challenges/tree/master/arrays_strings): `arrays_strings`
- [Linked lists](https://github.com/donnemartin/interactive-coding-challenges/tree/master/linked_lists): `linked_lists`
- [Stacks and queues](https://github.com/donnemartin/interactive-coding-challenges/tree/master/stacks_queues): `stacks_queues`
- [Graphs and trees](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees): `graphs_trees`
- [Sorting and search](https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching): `sorting_searching`
- [Recursion and DP](https://github.com/donnemartin/interactive-coding-challenges/tree/master/recursion_dynamic): `recursion_dynamic`
- [Math and probability](https://github.com/donnemartin/interactive-coding-challenges/tree/master/math_probability): `math_probability`
- [Bit manipulation](https://github.com/donnemartin/interactive-coding-challenges/tree/master/bit_manipulation): `bit_manipulation`
- [Online judges](https://github.com/donnemartin/interactive-coding-challenges/tree/master/online_judges): `online_judges`

### Data structures

- [Data structure references](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees): `graphs_trees`
- [Linked list](https://github.com/donnemartin/interactive-coding-challenges/blob/master/linked_lists/linked_list/linked_list.py): `linked_lists/linked_list/linked_list.py`
- [Stack](https://github.com/donnemartin/interactive-coding-challenges/blob/master/stacks_queues/stack/stack.py): `stacks_queues/stack/stack.py`
- [Queue](https://github.com/donnemartin/interactive-coding-challenges/blob/master/stacks_queues/queue_list/queue_list.py): `stacks_queues/queue_list/queue_list.py`
- [Binary search tree](https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/bst/bst.py): `graphs_trees/bst/bst.py`
- [Graph](https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/graph/graph.py): `graphs_trees/graph/graph.py`
- [Min heap](https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/min_heap/min_heap.py): `graphs_trees/min_heap/min_heap.py`
- [Trie](https://github.com/donnemartin/interactive-coding-challenges/blob/master/graphs_trees/trie/trie.py): `graphs_trees/trie/trie.py`
- [Priority queue](https://github.com/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/priority_queue/priority_queue.py): `arrays_strings/priority_queue/priority_queue.py`

### Algorithms

- [Algorithm references](https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching): `sorting_searching`
- [Topological sort](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees/graph_build_order): `graphs_trees/graph_build_order`
- [Tree and graph traversal](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees): `graphs_trees`
- [Shortest paths](https://github.com/donnemartin/interactive-coding-challenges/tree/master/graphs_trees/graph_shortest_path): `graphs_trees/graph_shortest_path`
- [Sorting algorithms](https://github.com/donnemartin/interactive-coding-challenges/tree/master/sorting_searching): `sorting_searching`
- [Knapsack algorithms](https://github.com/donnemartin/interactive-coding-challenges/tree/master/recursion_dynamic): `recursion_dynamic`

### Other components

- **Learner**

## Connections

- Learner → Challenge notebook: works through (evidence: `README.md`)
- Challenge notebook → Solution notebook: consults solution (evidence: `README.md`)
- Challenge notebook → Arrays and strings: solves challenges (evidence: `README.md`)
- Challenge notebook → Linked lists: solves challenges (evidence: `README.md`)
- Challenge notebook → Stacks and queues: solves challenges (evidence: `README.md`)
- Challenge notebook → Graphs and trees: solves challenges (evidence: `README.md`)
- Challenge notebook → Sorting and search: solves challenges (evidence: `README.md`)
- Challenge notebook → Recursion and DP: solves challenges (evidence: `README.md`)
- Challenge notebook → Math and probability: solves challenges (evidence: `README.md`)
- Challenge notebook → Bit manipulation: solves challenges (evidence: `README.md`)
- Challenge notebook → Online judges: solves challenges (evidence: `README.md`)
- Solution notebook → Data structure references: provides references (evidence: `README.md`)
- Solution notebook → Algorithm references: provides references (evidence: `README.md`)
- Data structure references → Linked list: includes (evidence: `README.md`)
- Data structure references → Stack: includes (evidence: `README.md`)
- Data structure references → Queue: includes (evidence: `README.md`)
- Data structure references → Binary search tree: includes (evidence: `README.md`)
- Data structure references → Graph: includes (evidence: `README.md`)
- Data structure references → Min heap: includes (evidence: `README.md`)
- Data structure references → Trie: includes (evidence: `README.md`)
- Data structure references → Priority queue: includes (evidence: `README.md`)
- Algorithm references → Topological sort: includes (evidence: `README.md`)
- Algorithm references → Tree and graph traversal: includes (evidence: `README.md`)
- Algorithm references → Shortest paths: includes (evidence: `README.md`)
- Algorithm references → Sorting algorithms: includes (evidence: `README.md`)
- Algorithm references → Knapsack algorithms: includes (evidence: `README.md`)
