# maheshmantrala/dsa_with_java architecture

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

- Interactive diagram: https://gitdiagram.com/maheshmantrala/dsa_with_java
- Repository: https://github.com/maheshmantrala/dsa_with_java

## Overview

DSA_with_Java is a learning repository of independent Java array and interview-problem examples, not a single application pipeline. The learner chooses and runs an example; its own main method reads fixed or user-provided input, applies an algorithm, and prints a result. The graph groups examples by topic and retains the array notes. The README documents the general compile-and-run workflow; source excerpts show individual implementations, but no shared runtime or calls between examples.

Main entry points: [`Arrays/Deep_Into_arrays.txt`](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deep_Into_arrays.txt) (Array Notes), [`Arrays/Basic_Arrays/CheckDuplicates.java`](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/CheckDuplicates.java) (Detect Duplicates), [`Arrays/Basic_Arrays/MaxMinArray.java`](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/MaxMinArray.java) (Find Max Min), [`Arrays/Basic_Arrays/ReverseArray.java`](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/ReverseArray.java) (Reverse Array)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Array Basics"]
  node_notes["Array Notes"]
  node_duplicates["Detect Duplicates"]
  node_maxmin["Find Max Min<br/>[MaxMinArray.java]"]
  node_reverse["Reverse Array<br/>[ReverseArray.java]"]
  node_sum["Sum Array<br/>[Sum_Of_array.java]"]
end

subgraph group_pointers["Two Pointers"]
  node_dice["Dice Pair Sum<br/>[Dice_Pointer.java]"]
  node_movezeros["Move Zeros<br/>[MoveAllZeros.java]"]
  node_pairsum["Pair Sum<br/>[Pair_Sum.java]"]
  node_palindrome["String Palindrome<br/>[palindrome.java]"]
  node_universalpalindrome["Universal Palindrome"]
end

subgraph group_subarrays["Subarray Techniques"]
  node_prefix["Prefix Sum<br/>[Prefix_Sum.java]"]
  node_kadane["Kadane Algorithm"]
  node_stock["Stock Profit"]
  node_maxproduct["Max Product Subarray"]
end

subgraph group_interview["Interview Problems"]
  node_prefixindices["Prefix Sum Indices"]
  node_exceptself["Product Except Self"]
  node_rotate["Rotate Array<br/>[Rotate.java]"]
  node_twosum["Two Sum<br/>[Two_sum.java]"]
  node_majority["Majority Element<br/>[majorityone.java]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_notes
node_learner -->|"runs example"| node_duplicates
node_learner -->|"runs example"| node_maxmin
node_learner -->|"runs example"| node_reverse
node_learner -->|"runs example"| node_sum
node_learner -->|"runs example"| node_dice
node_learner -->|"runs example"| node_movezeros
node_learner -->|"runs example"| node_pairsum
node_learner -->|"runs example"| node_palindrome
node_learner -->|"runs example"| node_universalpalindrome
node_learner -->|"runs example"| node_prefix
node_learner -->|"runs example"| node_kadane
node_learner -->|"runs example"| node_stock
node_learner -->|"runs example"| node_maxproduct
node_learner -->|"runs example"| node_prefixindices
node_learner -->|"runs example"| node_exceptself
node_learner -->|"runs example"| node_rotate
node_learner -->|"runs example"| node_twosum
node_learner -->|"runs example"| node_majority

click node_notes "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deep_Into_arrays.txt"
click node_duplicates "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/CheckDuplicates.java"
click node_maxmin "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/MaxMinArray.java"
click node_reverse "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/ReverseArray.java"
click node_sum "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/Sum_Of_array.java"
click node_dice "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Dice_Pointer.java"
click node_movezeros "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/MoveAllZeros.java"
click node_pairsum "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Pair_Sum.java"
click node_palindrome "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/palindrome.java"
click node_universalpalindrome "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/UniversalPalindromeCheck.java"
click node_prefix "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Prefix_Sum.java"
click node_kadane "https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/KadaneAlgorithm.java"
click node_stock "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/BestTimeToBuySell.java"
click node_maxproduct "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/MaxProductOfSubArray.java"
click node_prefixindices "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Prefix_Sum_indices.java"
click node_exceptself "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/ProductofElements_Except_Self.java"
click node_rotate "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Rotate.java"
click node_twosum "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Two_sum.java"
click node_majority "https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/majorityone.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_notes,node_duplicates,node_maxmin,node_reverse,node_sum toneBlue
class node_dice,node_movezeros,node_pairsum,node_palindrome,node_universalpalindrome toneAmber
class node_prefix,node_kadane,node_stock,node_maxproduct toneMint
class node_prefixindices,node_exceptself,node_rotate,node_twosum,node_majority toneRose
class node_learner toneIndigo
```

## Components

### Array Basics

- [Array Notes](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deep_Into_arrays.txt): `Arrays/Deep_Into_arrays.txt`
- [Detect Duplicates](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/CheckDuplicates.java): `Arrays/Basic_Arrays/CheckDuplicates.java`
- [Find Max Min](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/MaxMinArray.java): `Arrays/Basic_Arrays/MaxMinArray.java`
- [Reverse Array](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/ReverseArray.java): `Arrays/Basic_Arrays/ReverseArray.java`
- [Sum Array](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Basic_Arrays/Sum_Of_array.java): `Arrays/Basic_Arrays/Sum_Of_array.java`

### Two Pointers

- [Dice Pair Sum](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Dice_Pointer.java): `Arrays/Deeper_Into_arrays/Dice_Pointer.java`
- [Move Zeros](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/MoveAllZeros.java): `Arrays/Deeper_Into_arrays/MoveAllZeros.java`
- [Pair Sum](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Pair_Sum.java): `Arrays/Deeper_Into_arrays/Pair_Sum.java`
- [String Palindrome](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/palindrome.java): `Arrays/Deeper_Into_arrays/palindrome.java`
- [Universal Palindrome](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/UniversalPalindromeCheck.java): `Arrays/Deeper_Into_arrays/UniversalPalindromeCheck.java`

### Subarray Techniques

- [Prefix Sum](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/Prefix_Sum.java): `Arrays/Deeper_Into_arrays/Prefix_Sum.java`
- [Kadane Algorithm](https://github.com/maheshmantrala/dsa_with_java/blob/main/Arrays/Deeper_Into_arrays/KadaneAlgorithm.java): `Arrays/Deeper_Into_arrays/KadaneAlgorithm.java`
- [Stock Profit](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/BestTimeToBuySell.java): `LeetCode_Examples/BestTimeToBuySell.java`
- [Max Product Subarray](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/MaxProductOfSubArray.java): `LeetCode_Examples/MaxProductOfSubArray.java`

### Interview Problems

- [Prefix Sum Indices](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Prefix_Sum_indices.java): `LeetCode_Examples/Prefix_Sum_indices.java`
- [Product Except Self](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/ProductofElements_Except_Self.java): `LeetCode_Examples/ProductofElements_Except_Self.java`
- [Rotate Array](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Rotate.java): `LeetCode_Examples/Rotate.java`
- [Two Sum](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/Two_sum.java): `LeetCode_Examples/Two_sum.java`
- [Majority Element](https://github.com/maheshmantrala/dsa_with_java/blob/main/LeetCode_Examples/majorityone.java): `LeetCode_Examples/majorityone.java`

### Other components

- **Learner**

## Connections

- Learner → Array Notes: studies (evidence: `README.md`)
- Learner → Detect Duplicates: runs example (evidence: `README.md`)
- Learner → Find Max Min: runs example (evidence: `README.md`)
- Learner → Reverse Array: runs example (evidence: `README.md`)
- Learner → Sum Array: runs example (evidence: `README.md`)
- Learner → Dice Pair Sum: runs example (evidence: `README.md`)
- Learner → Move Zeros: runs example (evidence: `README.md`)
- Learner → Pair Sum: runs example (evidence: `README.md`)
- Learner → String Palindrome: runs example (evidence: `README.md`)
- Learner → Universal Palindrome: runs example (evidence: `README.md`)
- Learner → Prefix Sum: runs example (evidence: `README.md`)
- Learner → Kadane Algorithm: runs example (evidence: `README.md`)
- Learner → Stock Profit: runs example (evidence: `README.md`)
- Learner → Max Product Subarray: runs example (evidence: `README.md`)
- Learner → Prefix Sum Indices: runs example (evidence: `README.md`)
- Learner → Product Except Self: runs example (evidence: `README.md`)
- Learner → Rotate Array: runs example (evidence: `README.md`)
- Learner → Two Sum: runs example (evidence: `README.md`)
- Learner → Majority Element: runs example (evidence: `README.md`)
