# sanaya08singh-ai/cap2012_ca3_leetcode-12529912- architecture

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

- Interactive diagram: https://gitdiagram.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-
- Repository: https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-

## Overview

This repository is a collection of 16 independent, LeetCode-compatible C++ solution classes, not a single application pipeline. The workflow is a judge or caller invoking a solution method with problem input and receiving its result; each implementation stands alone. The solutions cover array and numeric operations, linked-list transformations, and stack/queue or parenthesis problems. The README documents the common judge-compatible interface, while the sampled source shows individual algorithms; no shared runtime or cross-solution calls are evidenced.

Main entry points: [`Easy/01_LC509_FibonacciNumber_Easy.cpp`](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/01_LC509_FibonacciNumber_Easy.cpp) (Fibonacci), [`Easy/02_LC1281_SubtractProductAndSum_Easy.cpp`](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/02_LC1281_SubtractProductAndSum_Easy.cpp) (Digit Arithmetic), [`Easy/03_LC026_RemoveDuplicatesFromSortedArray_Easy.cpp`](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/03_LC026_RemoveDuplicatesFromSortedArray_Easy.cpp) (Array Deduplication), [`Easy/04_LC027_RemoveElement_Easy.cpp`](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/04_LC027_RemoveElement_Easy.cpp) (Remove Element)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays and Numbers"]
  node_fibonacci["Fibonacci"]
  node_digit_math["Digit Arithmetic"]
  node_dedupe_array["Array Deduplication"]
  node_remove_element["Remove Element"]
  node_merge_arrays["Merge Arrays"]
  node_rotate_array["Rotate Array"]
  node_missing_positive["Missing Positive"]
end

subgraph group_lists["Linked Lists"]
  node_reverse_list["Reverse List"]
  node_dedupe_list["List Deduplication"]
  node_reverse_segment["Reverse List Segment"]
  node_rotate_list["Rotate List"]
end

subgraph group_structures["Stacks and Queues"]
  node_valid_parentheses["Valid Parentheses"]
  node_queue_stacks["Queue via Stacks"]
  node_longest_parentheses["Longest Parentheses"]
  node_min_stack["Minimum Stack"]
  node_circular_queue["Circular Queue"]
end

node_judge(("Judge / Caller"))

node_judge -->|"invokes solution"| node_fibonacci
node_judge -->|"invokes solution"| node_digit_math
node_judge -->|"invokes solution"| node_dedupe_array
node_judge -->|"invokes solution"| node_remove_element
node_judge -->|"invokes solution"| node_merge_arrays
node_judge -->|"invokes solution"| node_rotate_array
node_judge -->|"invokes solution"| node_missing_positive
node_judge -->|"invokes solution"| node_reverse_list
node_judge -->|"invokes solution"| node_dedupe_list
node_judge -->|"invokes solution"| node_reverse_segment
node_judge -->|"invokes solution"| node_rotate_list
node_judge -->|"invokes solution"| node_valid_parentheses
node_judge -->|"invokes solution"| node_queue_stacks
node_judge -->|"invokes solution"| node_longest_parentheses
node_judge -->|"invokes solution"| node_min_stack
node_judge -->|"invokes solution"| node_circular_queue

click node_fibonacci "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/01_LC509_FibonacciNumber_Easy.cpp"
click node_digit_math "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/02_LC1281_SubtractProductAndSum_Easy.cpp"
click node_dedupe_array "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/03_LC026_RemoveDuplicatesFromSortedArray_Easy.cpp"
click node_remove_element "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/04_LC027_RemoveElement_Easy.cpp"
click node_merge_arrays "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/05_LC088_MergeSortedArray_Easy.cpp"
click node_rotate_array "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/10_LC189_RotateArray_Medium.cpp"
click node_missing_positive "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Hard/16_LC041_FirstMissingPositive_Hard.cpp"
click node_reverse_list "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/06_LC206_ReverseLinkedList_Easy.cpp"
click node_dedupe_list "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/07_LC083_RemoveDuplicatesFromSortedList_Easy.cpp"
click node_reverse_segment "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/11_LC092_ReverseLinkedListII_Medium.cpp"
click node_rotate_list "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/12_LC061_RotateList_Medium.cpp"
click node_valid_parentheses "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/08_LC020_ValidParentheses_Easy.cpp"
click node_queue_stacks "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/09_LC232_ImplementQueueUsingStacks_Easy.cpp"
click node_longest_parentheses "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Hard/15_LC032_LongestValidParentheses_Hard.cpp"
click node_min_stack "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/13_LC155_MinStack_Medium.cpp"
click node_circular_queue "https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/14_LC622_DesignCircularQueue_Medium.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_fibonacci,node_digit_math,node_dedupe_array,node_remove_element,node_merge_arrays,node_rotate_array,node_missing_positive toneBlue
class node_reverse_list,node_dedupe_list,node_reverse_segment,node_rotate_list toneAmber
class node_valid_parentheses,node_queue_stacks,node_longest_parentheses,node_min_stack,node_circular_queue toneMint
class node_judge toneIndigo
```

## Components

### Arrays and Numbers

- [Fibonacci](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/01_LC509_FibonacciNumber_Easy.cpp): `Easy/01_LC509_FibonacciNumber_Easy.cpp`
- [Digit Arithmetic](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/02_LC1281_SubtractProductAndSum_Easy.cpp): `Easy/02_LC1281_SubtractProductAndSum_Easy.cpp`
- [Array Deduplication](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/03_LC026_RemoveDuplicatesFromSortedArray_Easy.cpp): `Easy/03_LC026_RemoveDuplicatesFromSortedArray_Easy.cpp`
- [Remove Element](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/04_LC027_RemoveElement_Easy.cpp): `Easy/04_LC027_RemoveElement_Easy.cpp`
- [Merge Arrays](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/05_LC088_MergeSortedArray_Easy.cpp): `Easy/05_LC088_MergeSortedArray_Easy.cpp`
- [Rotate Array](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/10_LC189_RotateArray_Medium.cpp): `Medium/10_LC189_RotateArray_Medium.cpp`
- [Missing Positive](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Hard/16_LC041_FirstMissingPositive_Hard.cpp): `Hard/16_LC041_FirstMissingPositive_Hard.cpp`

### Linked Lists

- [Reverse List](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/06_LC206_ReverseLinkedList_Easy.cpp): `Easy/06_LC206_ReverseLinkedList_Easy.cpp`
- [List Deduplication](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/07_LC083_RemoveDuplicatesFromSortedList_Easy.cpp): `Easy/07_LC083_RemoveDuplicatesFromSortedList_Easy.cpp`
- [Reverse List Segment](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/11_LC092_ReverseLinkedListII_Medium.cpp): `Medium/11_LC092_ReverseLinkedListII_Medium.cpp`
- [Rotate List](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/12_LC061_RotateList_Medium.cpp): `Medium/12_LC061_RotateList_Medium.cpp`

### Stacks and Queues

- [Valid Parentheses](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/08_LC020_ValidParentheses_Easy.cpp): `Easy/08_LC020_ValidParentheses_Easy.cpp`
- [Queue via Stacks](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Easy/09_LC232_ImplementQueueUsingStacks_Easy.cpp): `Easy/09_LC232_ImplementQueueUsingStacks_Easy.cpp`
- [Longest Parentheses](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Hard/15_LC032_LongestValidParentheses_Hard.cpp): `Hard/15_LC032_LongestValidParentheses_Hard.cpp`
- [Minimum Stack](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/13_LC155_MinStack_Medium.cpp): `Medium/13_LC155_MinStack_Medium.cpp`
- [Circular Queue](https://github.com/sanaya08singh-ai/cap2012_ca3_leetcode-12529912-/blob/master/Medium/14_LC622_DesignCircularQueue_Medium.cpp): `Medium/14_LC622_DesignCircularQueue_Medium.cpp`

### Other components

- **Judge / Caller**

## Connections

- Judge / Caller → Fibonacci: invokes solution (evidence: `README.md`)
- Judge / Caller → Digit Arithmetic: invokes solution (evidence: `README.md`)
- Judge / Caller → Array Deduplication: invokes solution (evidence: `README.md`)
- Judge / Caller → Remove Element: invokes solution (evidence: `README.md`)
- Judge / Caller → Merge Arrays: invokes solution (evidence: `README.md`)
- Judge / Caller → Rotate Array: invokes solution (evidence: `README.md`)
- Judge / Caller → Missing Positive: invokes solution (evidence: `README.md`)
- Judge / Caller → Reverse List: invokes solution (evidence: `README.md`)
- Judge / Caller → List Deduplication: invokes solution (evidence: `README.md`)
- Judge / Caller → Reverse List Segment: invokes solution (evidence: `README.md`)
- Judge / Caller → Rotate List: invokes solution (evidence: `README.md`)
- Judge / Caller → Valid Parentheses: invokes solution (evidence: `README.md`)
- Judge / Caller → Queue via Stacks: invokes solution (evidence: `README.md`)
- Judge / Caller → Longest Parentheses: invokes solution (evidence: `README.md`)
- Judge / Caller → Minimum Stack: invokes solution (evidence: `README.md`)
- Judge / Caller → Circular Queue: invokes solution (evidence: `README.md`)
