# sanjay04p/neetcode-submissions architecture

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

- Interactive diagram: https://gitdiagram.com/sanjay04p/neetcode-submissions
- Repository: https://github.com/sanjay04p/neetcode-submissions

## Overview

This repository is a NeetCode-synced archive of interview-problem solutions, not the platform or a runnable application. Its documented user-to-result flow is submitting or syncing solutions on NeetCode, which automatically populates this repository; the source files are independent Python implementations organized by problem. The graph groups those implementations by algorithmic theme. The README documents sync behavior, but the platform implementation and the individual submissions’ runtime callers are outside this repository.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_search["Search and Sorting"]
  node_binary_search["Binary search"]
  node_rotated_min["Rotated minimum"]
  node_rotated_target["Rotated search"]
  node_matrix_search["Matrix search"]
  node_eating_bananas["Banana speed"]
end

subgraph group_arrays["Arrays and Bits"]
  node_two_sum["Two sum"]
  node_two_sum_sorted["Sorted two sum"]
  node_three_sum["Three sum"]
  node_products["Array products"]
  node_container["Water container"]
  node_crypto["Crypto trading"]
  node_missing["Missing number"]
  node_single["Single number"]
  node_count_bits["Counting bits"]
  node_one_bits["One bits"]
  node_sum_bits["Integer sum"]
  node_reverse_int["Reverse integer"]
end

subgraph group_strings["Strings and Windows"]
  node_is_anagram["Anagram check"]
  node_palindrome["Palindrome check"]
  node_permutation["String permutation"]
  node_longest_unique["Unique substring"]
  node_replacement["Character replacement"]
end

subgraph group_stacks["Stacks and Lists"]
  node_parentheses["Validate parentheses"]
  node_rpn["RPN evaluation"]
  node_histogram["Histogram area"]
  node_temperatures["Daily temperatures"]
  node_car_fleet["Car fleet"]
  node_linked_cycle["Linked-list cycle"]
  node_reverse_list["Reverse linked list"]
end

subgraph group_hashing["Hashing and Sets"]
  node_duplicates["Duplicate integer"]
  node_longest_consecutive["Consecutive sequence"]
  node_anagram_groups["Anagram groups"]
end

node_neetcode(("NeetCode platform"))
node_archive["Synced solutions"]

node_neetcode -->|"syncs solutions"| node_archive

click node_binary_search "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/binary-search"
click node_rotated_min "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/find-minimum-in-rotated-sorted-array"
click node_rotated_target "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/find-target-in-rotated-sorted-array"
click node_matrix_search "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/search-2d-matrix"
click node_eating_bananas "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/eating-bananas"
click node_two_sum "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/two-integer-sum"
click node_two_sum_sorted "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/two-integer-sum-ii"
click node_three_sum "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/three-integer-sum"
click node_products "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/products-of-array-discluding-self"
click node_container "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/max-water-container"
click node_crypto "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/buy-and-sell-crypto"
click node_missing "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/missing-number"
click node_single "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/single-number"
click node_count_bits "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/counting-bits"
click node_one_bits "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/number-of-one-bits"
click node_sum_bits "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/sum-of-two-integers"
click node_reverse_int "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/reverse-integer"
click node_duplicates "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/duplicate-integer"
click node_longest_consecutive "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-consecutive-sequence"
click node_anagram_groups "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/anagram-groups"
click node_is_anagram "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/is-anagram"
click node_palindrome "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/is-palindrome"
click node_permutation "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/permutation-string"
click node_longest_unique "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-substring-without-duplicates"
click node_replacement "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-repeating-substring-with-replacement"
click node_parentheses "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/validate-parentheses"
click node_rpn "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/evaluate-reverse-polish-notation"
click node_histogram "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/largest-rectangle-in-histogram"
click node_temperatures "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/daily-temperatures"
click node_car_fleet "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/car-fleet"
click node_linked_cycle "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/linked-list-cycle-detection"
click node_reverse_list "https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/reverse-a-linked-list"

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_binary_search,node_rotated_min,node_rotated_target,node_matrix_search,node_eating_bananas toneBlue
class node_two_sum,node_two_sum_sorted,node_three_sum,node_products,node_container,node_crypto,node_missing,node_single,node_count_bits,node_one_bits,node_sum_bits,node_reverse_int toneAmber
class node_is_anagram,node_palindrome,node_permutation,node_longest_unique,node_replacement toneMint
class node_parentheses,node_rpn,node_histogram,node_temperatures,node_car_fleet,node_linked_cycle,node_reverse_list toneRose
class node_duplicates,node_longest_consecutive,node_anagram_groups,node_neetcode,node_archive toneIndigo
```

## Components

### Search and Sorting

- [Binary search](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/binary-search): `Data Structures & Algorithms/binary-search`
- [Rotated minimum](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/find-minimum-in-rotated-sorted-array): `Data Structures & Algorithms/find-minimum-in-rotated-sorted-array`
- [Rotated search](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/find-target-in-rotated-sorted-array): `Data Structures & Algorithms/find-target-in-rotated-sorted-array`
- [Matrix search](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/search-2d-matrix): `Data Structures & Algorithms/search-2d-matrix`
- [Banana speed](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/eating-bananas): `Data Structures & Algorithms/eating-bananas`

### Arrays and Bits

- [Two sum](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/two-integer-sum): `Data Structures & Algorithms/two-integer-sum`
- [Sorted two sum](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/two-integer-sum-ii): `Data Structures & Algorithms/two-integer-sum-ii`
- [Three sum](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/three-integer-sum): `Data Structures & Algorithms/three-integer-sum`
- [Array products](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/products-of-array-discluding-self): `Data Structures & Algorithms/products-of-array-discluding-self`
- [Water container](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/max-water-container): `Data Structures & Algorithms/max-water-container`
- [Crypto trading](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/buy-and-sell-crypto): `Data Structures & Algorithms/buy-and-sell-crypto`
- [Missing number](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/missing-number): `Data Structures & Algorithms/missing-number`
- [Single number](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/single-number): `Data Structures & Algorithms/single-number`
- [Counting bits](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/counting-bits): `Data Structures & Algorithms/counting-bits`
- [One bits](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/number-of-one-bits): `Data Structures & Algorithms/number-of-one-bits`
- [Integer sum](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/sum-of-two-integers): `Data Structures & Algorithms/sum-of-two-integers`
- [Reverse integer](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/reverse-integer): `Data Structures & Algorithms/reverse-integer`

### Strings and Windows

- [Anagram check](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/is-anagram): `Data Structures & Algorithms/is-anagram`
- [Palindrome check](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/is-palindrome): `Data Structures & Algorithms/is-palindrome`
- [String permutation](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/permutation-string): `Data Structures & Algorithms/permutation-string`
- [Unique substring](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-substring-without-duplicates): `Data Structures & Algorithms/longest-substring-without-duplicates`
- [Character replacement](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-repeating-substring-with-replacement): `Data Structures & Algorithms/longest-repeating-substring-with-replacement`

### Stacks and Lists

- [Validate parentheses](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/validate-parentheses): `Data Structures & Algorithms/validate-parentheses`
- [RPN evaluation](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/evaluate-reverse-polish-notation): `Data Structures & Algorithms/evaluate-reverse-polish-notation`
- [Histogram area](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/largest-rectangle-in-histogram): `Data Structures & Algorithms/largest-rectangle-in-histogram`
- [Daily temperatures](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/daily-temperatures): `Data Structures & Algorithms/daily-temperatures`
- [Car fleet](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/car-fleet): `Data Structures & Algorithms/car-fleet`
- [Linked-list cycle](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/linked-list-cycle-detection): `Data Structures & Algorithms/linked-list-cycle-detection`
- [Reverse linked list](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/reverse-a-linked-list): `Data Structures & Algorithms/reverse-a-linked-list`

### Hashing and Sets

- [Duplicate integer](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/duplicate-integer): `Data Structures & Algorithms/duplicate-integer`
- [Consecutive sequence](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/longest-consecutive-sequence): `Data Structures & Algorithms/longest-consecutive-sequence`
- [Anagram groups](https://github.com/sanjay04p/neetcode-submissions/tree/main/Data%20Structures%20%26%20Algorithms/anagram-groups): `Data Structures & Algorithms/anagram-groups`

### Other components

- **NeetCode platform**
- **Synced solutions**

## Connections

- NeetCode platform → Synced solutions: syncs solutions (evidence: `README.md`)
