# aishwarya5913/leetcode_ architecture

> Architecture diagram of the GitHub repository aishwarya5913/leetcode_, 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/aishwarya5913/leetcode_
- Repository: https://github.com/aishwarya5913/leetcode_

## Overview

This repository is a collection of standalone LeetCode solutions, not a connected application or shared library. Each file implements an independently callable algorithm; the tree and sampled source show no common runtime, dispatcher, or calls between solutions. Groups classify the problems by broad input or technique, not by execution flow. The graph preserves the individual solution files; no edges are inferred between them.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Arrays and matrices"]
  node_s1["Two Sum<br/>[two-sum.java]"]
  node_s4["Pascal Triangle"]
  node_s5["Three Consecutive Odds"]
  node_s6["Single Number<br/>[single-number.java]"]
  node_s7["Single Number II"]
  node_s11["Threshold Subarrays"]
  node_s13["XOR Array"]
  node_s14["Customer Wealth"]
  node_s15["Sorted Rotation Check"]
  node_s16["Rotate Array<br/>[rotate-array.java]"]
  node_s18["Product Sign"]
  node_s20["K-Score Difference"]
  node_s23["Nearby Duplicate"]
  node_s24["Radius Averages"]
  node_s28["Product Except Self"]
  node_s32["Remove Duplicates"]
  node_s34["Element-Digit Sum"]
end

subgraph group_strings["Strings"]
  node_s8["Common Prefix"]
  node_s12["Vowels in Window"]
  node_s17["Second Highest Digit"]
  node_s19["Pangram Check"]
  node_s25["Sentence Word Count"]
  node_s27["First Palindrome"]
  node_s29["Valid Anagram<br/>[valid-anagram.java]"]
end

subgraph group_numbers["Numbers and games"]
  node_s2["Fibonacci Number"]
  node_s3["Divisor Game<br/>[divisor-game.java]"]
  node_s9["Digit Product-Sum"]
  node_s10["K-Beauty"]
  node_s26["Rectangle Area"]
  node_s30["Temperature Conversion"]
  node_s31["Add Digits<br/>[add-digits.java]"]
  node_s33["Dividing Digits"]
end

subgraph group_search["Searching and sorting"]
  node_s21["Kth Largest"]
  node_s22["Kth Largest C++"]
end

click node_s1 "https://github.com/aishwarya5913/leetcode_/blob/main/1-two-sum/two-sum.java"
click node_s2 "https://github.com/aishwarya5913/leetcode_/blob/main/1013-fibonacci-number/fibonacci-number.java"
click node_s3 "https://github.com/aishwarya5913/leetcode_/blob/main/1086-divisor-game/divisor-game.java"
click node_s4 "https://github.com/aishwarya5913/leetcode_/blob/main/118-pascals-triangle/pascals-triangle.java"
click node_s5 "https://github.com/aishwarya5913/leetcode_/blob/main/1293-three-consecutive-odds/three-consecutive-odds.java"
click node_s6 "https://github.com/aishwarya5913/leetcode_/blob/main/136-single-number/single-number.java"
click node_s7 "https://github.com/aishwarya5913/leetcode_/blob/main/137-single-number-ii/single-number-ii.java"
click node_s8 "https://github.com/aishwarya5913/leetcode_/blob/main/14-longest-common-prefix/longest-common-prefix.java"
click node_s9 "https://github.com/aishwarya5913/leetcode_/blob/main/1406-subtract-the-product-and-sum-of-digits-of-an-integer/subtract-the-product-and-sum-of-digits-of-an-integer.java"
click node_s10 "https://github.com/aishwarya5913/leetcode_/blob/main/1430-find-the-k-beauty-of-a-number/find-the-k-beauty-of-a-number.java"
click node_s11 "https://github.com/aishwarya5913/leetcode_/blob/main/1445-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.java"
click node_s12 "https://github.com/aishwarya5913/leetcode_/blob/main/1567-maximum-number-of-vowels-in-a-substring-of-given-length/maximum-number-of-vowels-in-a-substring-of-given-length.java"
click node_s13 "https://github.com/aishwarya5913/leetcode_/blob/main/1610-xor-operation-in-an-array/xor-operation-in-an-array.java"
click node_s14 "https://github.com/aishwarya5913/leetcode_/blob/main/1791-richest-customer-wealth/richest-customer-wealth.java"
click node_s15 "https://github.com/aishwarya5913/leetcode_/blob/main/1878-check-if-array-is-sorted-and-rotated/check-if-array-is-sorted-and-rotated.java"
click node_s16 "https://github.com/aishwarya5913/leetcode_/blob/main/189-rotate-array/rotate-array.java"
click node_s17 "https://github.com/aishwarya5913/leetcode_/blob/main/1904-second-largest-digit-in-a-string/second-largest-digit-in-a-string.java"
click node_s18 "https://github.com/aishwarya5913/leetcode_/blob/main/1950-sign-of-the-product-of-an-array/sign-of-the-product-of-an-array.java"
click node_s19 "https://github.com/aishwarya5913/leetcode_/blob/main/1960-check-if-the-sentence-is-pangram/check-if-the-sentence-is-pangram.java"
click node_s20 "https://github.com/aishwarya5913/leetcode_/blob/main/2112-minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.java"
click node_s21 "https://github.com/aishwarya5913/leetcode_/blob/main/215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.java"
click node_s22 "https://github.com/aishwarya5913/leetcode_/blob/main/215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.cpp"
click node_s23 "https://github.com/aishwarya5913/leetcode_/blob/main/219-contains-duplicate-ii/contains-duplicate-ii.java"
click node_s24 "https://github.com/aishwarya5913/leetcode_/blob/main/2211-k-radius-subarray-averages/k-radius-subarray-averages.java"
click node_s25 "https://github.com/aishwarya5913/leetcode_/blob/main/2219-maximum-number-of-words-found-in-sentences/maximum-number-of-words-found-in-sentences.java"
click node_s26 "https://github.com/aishwarya5913/leetcode_/blob/main/223-rectangle-area/rectangle-area.java"
click node_s27 "https://github.com/aishwarya5913/leetcode_/blob/main/2231-find-first-palindromic-string-in-the-array/find-first-palindromic-string-in-the-array.java"
click node_s28 "https://github.com/aishwarya5913/leetcode_/blob/main/238-product-of-array-except-self/product-of-array-except-self.java"
click node_s29 "https://github.com/aishwarya5913/leetcode_/blob/main/242-valid-anagram/valid-anagram.java"
click node_s30 "https://github.com/aishwarya5913/leetcode_/blob/main/2556-convert-the-temperature/convert-the-temperature.java"
click node_s31 "https://github.com/aishwarya5913/leetcode_/blob/main/258-add-digits/add-digits.java"
click node_s32 "https://github.com/aishwarya5913/leetcode_/blob/main/26-remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.java"
click node_s33 "https://github.com/aishwarya5913/leetcode_/blob/main/2608-count-the-digits-that-divide-a-number/count-the-digits-that-divide-a-number.java"
click node_s34 "https://github.com/aishwarya5913/leetcode_/blob/main/2624-difference-between-element-sum-and-digit-sum-of-an-array/difference-between-element-sum-and-digit-sum-of-an-array.java"

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_s1,node_s4,node_s5,node_s6,node_s7,node_s11,node_s13,node_s14,node_s15,node_s16,node_s18,node_s20,node_s23,node_s24,node_s28,node_s32,node_s34 toneBlue
class node_s8,node_s12,node_s17,node_s19,node_s25,node_s27,node_s29 toneAmber
class node_s2,node_s3,node_s9,node_s10,node_s26,node_s30,node_s31,node_s33 toneMint
class node_s21,node_s22 toneRose
```

## Components

### Arrays and matrices

- [Two Sum](https://github.com/aishwarya5913/leetcode_/blob/main/1-two-sum/two-sum.java): `1-two-sum/two-sum.java`
- [Pascal Triangle](https://github.com/aishwarya5913/leetcode_/blob/main/118-pascals-triangle/pascals-triangle.java): `118-pascals-triangle/pascals-triangle.java`
- [Three Consecutive Odds](https://github.com/aishwarya5913/leetcode_/blob/main/1293-three-consecutive-odds/three-consecutive-odds.java): `1293-three-consecutive-odds/three-consecutive-odds.java`
- [Single Number](https://github.com/aishwarya5913/leetcode_/blob/main/136-single-number/single-number.java): `136-single-number/single-number.java`
- [Single Number II](https://github.com/aishwarya5913/leetcode_/blob/main/137-single-number-ii/single-number-ii.java): `137-single-number-ii/single-number-ii.java`
- [Threshold Subarrays](https://github.com/aishwarya5913/leetcode_/blob/main/1445-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.java): `1445-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.java`
- [XOR Array](https://github.com/aishwarya5913/leetcode_/blob/main/1610-xor-operation-in-an-array/xor-operation-in-an-array.java): `1610-xor-operation-in-an-array/xor-operation-in-an-array.java`
- [Customer Wealth](https://github.com/aishwarya5913/leetcode_/blob/main/1791-richest-customer-wealth/richest-customer-wealth.java): `1791-richest-customer-wealth/richest-customer-wealth.java`
- [Sorted Rotation Check](https://github.com/aishwarya5913/leetcode_/blob/main/1878-check-if-array-is-sorted-and-rotated/check-if-array-is-sorted-and-rotated.java): `1878-check-if-array-is-sorted-and-rotated/check-if-array-is-sorted-and-rotated.java`
- [Rotate Array](https://github.com/aishwarya5913/leetcode_/blob/main/189-rotate-array/rotate-array.java): `189-rotate-array/rotate-array.java`
- [Product Sign](https://github.com/aishwarya5913/leetcode_/blob/main/1950-sign-of-the-product-of-an-array/sign-of-the-product-of-an-array.java): `1950-sign-of-the-product-of-an-array/sign-of-the-product-of-an-array.java`
- [K-Score Difference](https://github.com/aishwarya5913/leetcode_/blob/main/2112-minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.java): `2112-minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.java`
- [Nearby Duplicate](https://github.com/aishwarya5913/leetcode_/blob/main/219-contains-duplicate-ii/contains-duplicate-ii.java): `219-contains-duplicate-ii/contains-duplicate-ii.java`
- [Radius Averages](https://github.com/aishwarya5913/leetcode_/blob/main/2211-k-radius-subarray-averages/k-radius-subarray-averages.java): `2211-k-radius-subarray-averages/k-radius-subarray-averages.java`
- [Product Except Self](https://github.com/aishwarya5913/leetcode_/blob/main/238-product-of-array-except-self/product-of-array-except-self.java): `238-product-of-array-except-self/product-of-array-except-self.java`
- [Remove Duplicates](https://github.com/aishwarya5913/leetcode_/blob/main/26-remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.java): `26-remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.java`
- [Element-Digit Sum](https://github.com/aishwarya5913/leetcode_/blob/main/2624-difference-between-element-sum-and-digit-sum-of-an-array/difference-between-element-sum-and-digit-sum-of-an-array.java): `2624-difference-between-element-sum-and-digit-sum-of-an-array/difference-between-element-sum-and-digit-sum-of-an-array.java`

### Strings

- [Common Prefix](https://github.com/aishwarya5913/leetcode_/blob/main/14-longest-common-prefix/longest-common-prefix.java): `14-longest-common-prefix/longest-common-prefix.java`
- [Vowels in Window](https://github.com/aishwarya5913/leetcode_/blob/main/1567-maximum-number-of-vowels-in-a-substring-of-given-length/maximum-number-of-vowels-in-a-substring-of-given-length.java): `1567-maximum-number-of-vowels-in-a-substring-of-given-length/maximum-number-of-vowels-in-a-substring-of-given-length.java`
- [Second Highest Digit](https://github.com/aishwarya5913/leetcode_/blob/main/1904-second-largest-digit-in-a-string/second-largest-digit-in-a-string.java): `1904-second-largest-digit-in-a-string/second-largest-digit-in-a-string.java`
- [Pangram Check](https://github.com/aishwarya5913/leetcode_/blob/main/1960-check-if-the-sentence-is-pangram/check-if-the-sentence-is-pangram.java): `1960-check-if-the-sentence-is-pangram/check-if-the-sentence-is-pangram.java`
- [Sentence Word Count](https://github.com/aishwarya5913/leetcode_/blob/main/2219-maximum-number-of-words-found-in-sentences/maximum-number-of-words-found-in-sentences.java): `2219-maximum-number-of-words-found-in-sentences/maximum-number-of-words-found-in-sentences.java`
- [First Palindrome](https://github.com/aishwarya5913/leetcode_/blob/main/2231-find-first-palindromic-string-in-the-array/find-first-palindromic-string-in-the-array.java): `2231-find-first-palindromic-string-in-the-array/find-first-palindromic-string-in-the-array.java`
- [Valid Anagram](https://github.com/aishwarya5913/leetcode_/blob/main/242-valid-anagram/valid-anagram.java): `242-valid-anagram/valid-anagram.java`

### Numbers and games

- [Fibonacci Number](https://github.com/aishwarya5913/leetcode_/blob/main/1013-fibonacci-number/fibonacci-number.java): `1013-fibonacci-number/fibonacci-number.java`
- [Divisor Game](https://github.com/aishwarya5913/leetcode_/blob/main/1086-divisor-game/divisor-game.java): `1086-divisor-game/divisor-game.java`
- [Digit Product-Sum](https://github.com/aishwarya5913/leetcode_/blob/main/1406-subtract-the-product-and-sum-of-digits-of-an-integer/subtract-the-product-and-sum-of-digits-of-an-integer.java): `1406-subtract-the-product-and-sum-of-digits-of-an-integer/subtract-the-product-and-sum-of-digits-of-an-integer.java`
- [K-Beauty](https://github.com/aishwarya5913/leetcode_/blob/main/1430-find-the-k-beauty-of-a-number/find-the-k-beauty-of-a-number.java): `1430-find-the-k-beauty-of-a-number/find-the-k-beauty-of-a-number.java`
- [Rectangle Area](https://github.com/aishwarya5913/leetcode_/blob/main/223-rectangle-area/rectangle-area.java): `223-rectangle-area/rectangle-area.java`
- [Temperature Conversion](https://github.com/aishwarya5913/leetcode_/blob/main/2556-convert-the-temperature/convert-the-temperature.java): `2556-convert-the-temperature/convert-the-temperature.java`
- [Add Digits](https://github.com/aishwarya5913/leetcode_/blob/main/258-add-digits/add-digits.java): `258-add-digits/add-digits.java`
- [Dividing Digits](https://github.com/aishwarya5913/leetcode_/blob/main/2608-count-the-digits-that-divide-a-number/count-the-digits-that-divide-a-number.java): `2608-count-the-digits-that-divide-a-number/count-the-digits-that-divide-a-number.java`

### Searching and sorting

- [Kth Largest](https://github.com/aishwarya5913/leetcode_/blob/main/215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.java): `215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.java`
- [Kth Largest C++](https://github.com/aishwarya5913/leetcode_/blob/main/215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.cpp): `215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.cpp`
