# ashutosh-6603/leetcode-solutions architecture

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

- Interactive diagram: https://gitdiagram.com/ashutosh-6603/leetcode-solutions
- Repository: https://github.com/ashutosh-6603/leetcode-solutions

## Overview

This repository is a set of independent JavaScript solutions to LeetCode problems, not a single application or shared library. The user workflow is to choose a problem’s file, provide its expected inputs, and run that file’s solution to obtain a result; the sampled files also include local example calls. Solutions cover arrays, strings, numeric problems, and data structures or other techniques. Files do not import one another, and the README is empty, so no inter-solution call graph or common runtime is evidenced.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Array Algorithms"]
  node_leetcode1["Two Sum<br/>[leetcode-1.js]"]
  node_leetcode11["Container Area<br/>[leetcode-11.js]"]
  node_leetcode118["Pascal Triangle<br/>[leetcode-118.js]"]
  node_leetcode119["Pascal Row<br/>[leetcode-119.js]"]
  node_leetcode121["Stock Profit<br/>[leetcode-121.js]"]
  node_leetcode122["Stock Trades<br/>[leetcode-122.js]"]
  node_leetcode134["Gas Circuit<br/>[leetcode-134.js]"]
  node_leetcode135["Candy Allocation<br/>[leetcode-135.js]"]
  node_leetcode15["Three Sum<br/>[leetcode-15.js]"]
  node_leetcode167["Sorted Two Sum<br/>[leetcode-167.js]"]
  node_leetcode189["Rotate Array<br/>[leetcode-189.js]"]
  node_leetcode209["Subarray Sum<br/>[leetcode-209.js]"]
  node_leetcode217["Array Duplicates<br/>[leetcode-217.js]"]
  node_leetcode219["Nearby Duplicate<br/>[leetcode-219.js]"]
  node_leetcode238["Product Except Self<br/>[leetcode-238.js]"]
  node_leetcode26["Remove Duplicates<br/>[leetcode-26.js]"]
  node_leetcode27["Remove Element<br/>[leetcode-27.js]"]
  node_leetcode283["Move Zeroes<br/>[leetcode-283.js]"]
  node_leetcode36["Sudoku Validation<br/>[leetcode-36.js]"]
  node_leetcode42["Rainwater Trap<br/>[leetcode-42.js]"]
  node_leetcode45["Jump Game II<br/>[leetcode-45.js]"]
  node_leetcode55["Jump Game<br/>[leetcode-55.js]"]
  node_leetcode594["Harmonious Subsequence<br/>[leetcode-594.js]"]
  node_leetcode80["Limited Duplicates<br/>[leetcode-80.js]"]
  node_leetcode88["Merge Sorted Arrays<br/>[leetcode-88.js]"]
end

subgraph group_strings["String Algorithms"]
  node_leetcode12["Integer to Roman<br/>[leetcode-12.js]"]
  node_leetcode125["Palindrome Check<br/>[leetcode-125.js]"]
  node_leetcode13["Roman to Integer<br/>[leetcode-13.js]"]
  node_leetcode14["Common Prefix<br/>[leetcode-14.js]"]
  node_leetcode1456["Vowel Window<br/>[leetcode-1456.js]"]
  node_leetcode151["Reverse Words<br/>[leetcode-151.js]"]
  node_leetcode17["Phone Combinations<br/>[leetcode-17.js]"]
  node_leetcode187["Repeated DNA<br/>[leetcode-187.js]"]
end

subgraph group_numeric["Numeric Algorithms"]
end

subgraph group_structures["Data Structures"]
  node_leetcode380["Randomized Set<br/>[leetcode-380.js]"]
end

click node_leetcode1 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-1.js"
click node_leetcode11 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-11.js"
click node_leetcode118 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-118.js"
click node_leetcode119 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-119.js"
click node_leetcode121 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-121.js"
click node_leetcode122 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-122.js"
click node_leetcode134 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-134.js"
click node_leetcode135 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-135.js"
click node_leetcode15 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-15.js"
click node_leetcode167 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-167.js"
click node_leetcode189 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-189.js"
click node_leetcode209 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-209.js"
click node_leetcode217 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-217.js"
click node_leetcode219 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-219.js"
click node_leetcode238 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-238.js"
click node_leetcode26 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-26.js"
click node_leetcode27 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-27.js"
click node_leetcode283 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-283.js"
click node_leetcode36 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-36.js"
click node_leetcode380 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-380.js"
click node_leetcode42 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-42.js"
click node_leetcode45 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-45.js"
click node_leetcode55 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-55.js"
click node_leetcode594 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-594.js"
click node_leetcode80 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-80.js"
click node_leetcode88 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-88.js"
click node_leetcode12 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-12.js"
click node_leetcode125 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-125.js"
click node_leetcode13 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-13.js"
click node_leetcode14 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-14.js"
click node_leetcode1456 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-1456.js"
click node_leetcode151 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-151.js"
click node_leetcode17 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-17.js"
click node_leetcode187 "https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-187.js"

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_leetcode1,node_leetcode11,node_leetcode118,node_leetcode119,node_leetcode121,node_leetcode122,node_leetcode134,node_leetcode135,node_leetcode15,node_leetcode167,node_leetcode189,node_leetcode209,node_leetcode217,node_leetcode219,node_leetcode238,node_leetcode26,node_leetcode27,node_leetcode283,node_leetcode36,node_leetcode42,node_leetcode45,node_leetcode55,node_leetcode594,node_leetcode80,node_leetcode88 toneBlue
class node_leetcode12,node_leetcode125,node_leetcode13,node_leetcode14,node_leetcode1456,node_leetcode151,node_leetcode17,node_leetcode187 toneAmber
class node_leetcode380 toneRose
```

## Components

### Array Algorithms

- [Two Sum](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-1.js): `leetcode-1.js`
- [Container Area](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-11.js): `leetcode-11.js`
- [Pascal Triangle](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-118.js): `leetcode-118.js`
- [Pascal Row](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-119.js): `leetcode-119.js`
- [Stock Profit](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-121.js): `leetcode-121.js`
- [Stock Trades](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-122.js): `leetcode-122.js`
- [Gas Circuit](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-134.js): `leetcode-134.js`
- [Candy Allocation](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-135.js): `leetcode-135.js`
- [Three Sum](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-15.js): `leetcode-15.js`
- [Sorted Two Sum](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-167.js): `leetcode-167.js`
- [Rotate Array](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-189.js): `leetcode-189.js`
- [Subarray Sum](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-209.js): `leetcode-209.js`
- [Array Duplicates](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-217.js): `leetcode-217.js`
- [Nearby Duplicate](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-219.js): `leetcode-219.js`
- [Product Except Self](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-238.js): `leetcode-238.js`
- [Remove Duplicates](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-26.js): `leetcode-26.js`
- [Remove Element](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-27.js): `leetcode-27.js`
- [Move Zeroes](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-283.js): `leetcode-283.js`
- [Sudoku Validation](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-36.js): `leetcode-36.js`
- [Rainwater Trap](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-42.js): `leetcode-42.js`
- [Jump Game II](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-45.js): `leetcode-45.js`
- [Jump Game](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-55.js): `leetcode-55.js`
- [Harmonious Subsequence](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-594.js): `leetcode-594.js`
- [Limited Duplicates](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-80.js): `leetcode-80.js`
- [Merge Sorted Arrays](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-88.js): `leetcode-88.js`

### String Algorithms

- [Integer to Roman](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-12.js): `leetcode-12.js`
- [Palindrome Check](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-125.js): `leetcode-125.js`
- [Roman to Integer](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-13.js): `leetcode-13.js`
- [Common Prefix](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-14.js): `leetcode-14.js`
- [Vowel Window](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-1456.js): `leetcode-1456.js`
- [Reverse Words](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-151.js): `leetcode-151.js`
- [Phone Combinations](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-17.js): `leetcode-17.js`
- [Repeated DNA](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-187.js): `leetcode-187.js`

### Data Structures

- [Randomized Set](https://github.com/ashutosh-6603/leetcode-solutions/blob/main/leetcode-380.js): `leetcode-380.js`
