# rubashreekt/dsa_java_journey architecture

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

- Interactive diagram: https://gitdiagram.com/rubashreekt/dsa_java_journey
- Repository: https://github.com/rubashreekt/dsa_java_journey

## Overview

DSA_JAVA_JOURNEY is a collection of standalone Java learning examples and data-structure/algorithm problem solutions, not an interconnected application. The typical workflow is to run an individual class, read input with its own main method (or use its hard-coded sample), apply one algorithm, and print a result. The README describes the repository broadly; the source tree establishes topic areas. No shared runtime or cross-example calls are evidenced, so the graph groups representative and substantial examples by topic and omits unsupported relationships.

Main entry points: [`01.Basics`](https://github.com/rubashreekt/dsa_java_journey/tree/main/01.Basics) (Input and output), [`01.Basics/Reverse32bitIntegers.java`](https://github.com/rubashreekt/dsa_java_journey/blob/main/01.Basics/Reverse32bitIntegers.java) (Reverse integer), [`02.Conditions`](https://github.com/rubashreekt/dsa_java_journey/tree/main/02.Conditions) (Condition problems), [`03.Loops`](https://github.com/rubashreekt/dsa_java_journey/tree/main/03.Loops) (Loop problems)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Java Basics"]
  node_basic_io["Input and output<br/>[01.Basics]"]
  node_reverse_integer["Reverse integer"]
end

subgraph group_conditions["Conditions"]
  node_conditions_examples["Condition problems<br/>[02.Conditions]"]
  node_third_max["Third maximum"]
end

subgraph group_loops["Loops"]
  node_loop_examples["Loop problems<br/>[03.Loops]"]
  node_terms["Series terms<br/>[Terms.java]"]
end

subgraph group_arrays["Arrays and Strings"]
  node_array_string_examples["Array and string problems"]
  node_reverse_vowels["Reverse vowels<br/>[ReverseVowels.java]"]
end

subgraph group_algorithms["Algorithm Patterns"]
  node_two_pointer_examples["Two-pointer problems<br/>[05.Two_Pointers]"]
  node_max_k_sums["Pair sums"]
  node_sliding_window_examples["Sliding-window problems<br/>[06.Sliding_Window]"]
  node_max_average["Maximum average"]
  node_max_vowels["Maximum vowels"]
  node_prefix_sum_examples["Prefix-sum problems<br/>[07.Prefix_Sum]"]
  node_pivot_index["Pivot index<br/>[PivotIndex.java]"]
  node_math_examples["Math problems<br/>[10.Math]"]
  node_sqrt["Integer square root<br/>[Sqrt.java]"]
end

subgraph group_structures["Data Structures"]
  node_hash_examples["Map and set problems<br/>[08.HashMap &amp; Set]"]
  node_close_hash["Close strings"]
  node_stack_examples["Stack problems<br/>[09.Stack]"]
  node_decode_string["Decode string<br/>[DecodeString.java]"]
  node_asteroid_collision["Asteroid collision"]
end

node_runner(("Standalone runner"))

node_runner -.->|"runs example"| node_basic_io
node_runner -.->|"runs example"| node_reverse_integer
node_runner -.->|"runs example"| node_conditions_examples
node_runner -.->|"runs example"| node_loop_examples
node_runner -.->|"runs example"| node_array_string_examples
node_runner -.->|"runs example"| node_two_pointer_examples
node_runner -.->|"runs example"| node_sliding_window_examples
node_runner -.->|"runs example"| node_prefix_sum_examples
node_runner -.->|"runs example"| node_hash_examples
node_runner -.->|"runs example"| node_stack_examples
node_runner -.->|"runs example"| node_math_examples

click node_basic_io "https://github.com/rubashreekt/dsa_java_journey/tree/main/01.Basics"
click node_reverse_integer "https://github.com/rubashreekt/dsa_java_journey/blob/main/01.Basics/Reverse32bitIntegers.java"
click node_conditions_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/02.Conditions"
click node_third_max "https://github.com/rubashreekt/dsa_java_journey/blob/main/02.Conditions/ThirdMaximumNumber.java"
click node_loop_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/03.Loops"
click node_terms "https://github.com/rubashreekt/dsa_java_journey/blob/main/03.Loops/Terms.java"
click node_array_string_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/04.Arrays%20%26%20Strings"
click node_reverse_vowels "https://github.com/rubashreekt/dsa_java_journey/blob/main/04.Arrays%20%26%20Strings/ReverseVowels.java"
click node_two_pointer_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/05.Two_Pointers"
click node_max_k_sums "https://github.com/rubashreekt/dsa_java_journey/blob/main/05.Two_Pointers/MaxNumbersOfK_Sums.java"
click node_sliding_window_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/06.Sliding_Window"
click node_max_average "https://github.com/rubashreekt/dsa_java_journey/blob/main/06.Sliding_Window/MaximumAverageSubarray.java"
click node_max_vowels "https://github.com/rubashreekt/dsa_java_journey/blob/main/06.Sliding_Window/MaximumVowelsInSubstring.java"
click node_prefix_sum_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/07.Prefix_Sum"
click node_pivot_index "https://github.com/rubashreekt/dsa_java_journey/blob/main/07.Prefix_Sum/PivotIndex.java"
click node_hash_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/08.HashMap%20%26%20Set"
click node_close_hash "https://github.com/rubashreekt/dsa_java_journey/blob/main/08.HashMap%20%26%20Set/TwoStringsCloseHash.java"
click node_stack_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/09.Stack"
click node_decode_string "https://github.com/rubashreekt/dsa_java_journey/blob/main/09.Stack/DecodeString.java"
click node_asteroid_collision "https://github.com/rubashreekt/dsa_java_journey/blob/main/09.Stack/AsteroidCollision.java"
click node_math_examples "https://github.com/rubashreekt/dsa_java_journey/tree/main/10.Math"
click node_sqrt "https://github.com/rubashreekt/dsa_java_journey/blob/main/10.Math/Sqrt.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_basic_io,node_reverse_integer toneBlue
class node_conditions_examples,node_third_max toneAmber
class node_loop_examples,node_terms toneMint
class node_array_string_examples,node_reverse_vowels toneRose
class node_two_pointer_examples,node_max_k_sums,node_sliding_window_examples,node_max_average,node_max_vowels,node_prefix_sum_examples,node_pivot_index,node_math_examples,node_sqrt,node_runner toneIndigo
class node_hash_examples,node_close_hash,node_stack_examples,node_decode_string,node_asteroid_collision toneTeal
```

## Components

### Java Basics

- [Input and output](https://github.com/rubashreekt/dsa_java_journey/tree/main/01.Basics): `01.Basics`
- [Reverse integer](https://github.com/rubashreekt/dsa_java_journey/blob/main/01.Basics/Reverse32bitIntegers.java): `01.Basics/Reverse32bitIntegers.java`

### Conditions

- [Condition problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/02.Conditions): `02.Conditions`
- [Third maximum](https://github.com/rubashreekt/dsa_java_journey/blob/main/02.Conditions/ThirdMaximumNumber.java): `02.Conditions/ThirdMaximumNumber.java`

### Loops

- [Loop problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/03.Loops): `03.Loops`
- [Series terms](https://github.com/rubashreekt/dsa_java_journey/blob/main/03.Loops/Terms.java): `03.Loops/Terms.java`

### Arrays and Strings

- [Array and string problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/04.Arrays%20%26%20Strings): `04.Arrays & Strings`
- [Reverse vowels](https://github.com/rubashreekt/dsa_java_journey/blob/main/04.Arrays%20%26%20Strings/ReverseVowels.java): `04.Arrays & Strings/ReverseVowels.java`

### Algorithm Patterns

- [Two-pointer problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/05.Two_Pointers): `05.Two_Pointers`
- [Pair sums](https://github.com/rubashreekt/dsa_java_journey/blob/main/05.Two_Pointers/MaxNumbersOfK_Sums.java): `05.Two_Pointers/MaxNumbersOfK_Sums.java`
- [Sliding-window problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/06.Sliding_Window): `06.Sliding_Window`
- [Maximum average](https://github.com/rubashreekt/dsa_java_journey/blob/main/06.Sliding_Window/MaximumAverageSubarray.java): `06.Sliding_Window/MaximumAverageSubarray.java`
- [Maximum vowels](https://github.com/rubashreekt/dsa_java_journey/blob/main/06.Sliding_Window/MaximumVowelsInSubstring.java): `06.Sliding_Window/MaximumVowelsInSubstring.java`
- [Prefix-sum problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/07.Prefix_Sum): `07.Prefix_Sum`
- [Pivot index](https://github.com/rubashreekt/dsa_java_journey/blob/main/07.Prefix_Sum/PivotIndex.java): `07.Prefix_Sum/PivotIndex.java`
- [Math problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/10.Math): `10.Math`
- [Integer square root](https://github.com/rubashreekt/dsa_java_journey/blob/main/10.Math/Sqrt.java): `10.Math/Sqrt.java`

### Data Structures

- [Map and set problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/08.HashMap%20%26%20Set): `08.HashMap & Set`
- [Close strings](https://github.com/rubashreekt/dsa_java_journey/blob/main/08.HashMap%20%26%20Set/TwoStringsCloseHash.java): `08.HashMap & Set/TwoStringsCloseHash.java`
- [Stack problems](https://github.com/rubashreekt/dsa_java_journey/tree/main/09.Stack): `09.Stack`
- [Decode string](https://github.com/rubashreekt/dsa_java_journey/blob/main/09.Stack/DecodeString.java): `09.Stack/DecodeString.java`
- [Asteroid collision](https://github.com/rubashreekt/dsa_java_journey/blob/main/09.Stack/AsteroidCollision.java): `09.Stack/AsteroidCollision.java`

### Other components

- **Standalone runner**

## Connections

- Standalone runner → Input and output: runs example
- Standalone runner → Reverse integer: runs example
- Standalone runner → Condition problems: runs example
- Standalone runner → Loop problems: runs example
- Standalone runner → Array and string problems: runs example
- Standalone runner → Two-pointer problems: runs example
- Standalone runner → Sliding-window problems: runs example
- Standalone runner → Prefix-sum problems: runs example
- Standalone runner → Map and set problems: runs example
- Standalone runner → Stack problems: runs example
- Standalone runner → Math problems: runs example
