# team-codebug/leetcode architecture

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

- Interactive diagram: https://gitdiagram.com/team-codebug/leetcode
- Repository: https://github.com/team-codebug/leetcode

## Overview

This repository is a collection of standalone programming lessons and algorithm exercises, not a single application. A learner runs an example or calls an exercise method and receives a computed value or console output. The Java material covers algorithm problems, maps, strings, recursion, and two-pointer techniques; separate JavaScript lessons demonstrate language concepts. Several Java files define their own main methods, so there is no shared runtime orchestrator. The README is empty; links between examples are included only where the source index or excerpts show references.

Main entry points: [`NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/Main.java`](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/Main.java) (Algorithm Examples), [`NewtonSchoolStudentsDemo/Recursion.java`](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Recursion.java) (Recursion Examples), [`NewtonSchoolStudentsDemo/Strings2.java`](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Strings2.java) (String Exercises), [`NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapDemo.java`](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapDemo.java) (Map Examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_java_exercises["Java Exercises"]
  node_root_problems["LeetCode Problems"]
  node_search_insert["Search Insert"]
  node_roman["Roman Conversion"]
end

subgraph group_java_lessons["Java Lessons"]
  node_hashmap_examples["Map Examples<br/>[MapDemo.java]"]
  node_map_questions["Map Questions<br/>[MapQuestions.java]"]
  node_hashmap_api["HashMap APIs<br/>[HashMapApis.java]"]
  node_main_examples["Algorithm Examples<br/>[Main.java]"]
  node_string_problems["String Problems"]
  node_search_examples["Search Algorithms<br/>[BinarySearch.java]"]
  node_sort_examples["Sorting Algorithms<br/>[MergeSort.java]"]
  node_recursion["Recursion Examples<br/>[Recursion.java]"]
  node_two_pointer["Two Pointer Examples<br/>[TwoPointer.java]"]
  node_map_functions["Map Functions<br/>[MapFunctions.java]"]
  node_string_lessons["String Exercises<br/>[Strings2.java]"]
  node_hashmap_notes["HashMap Notes<br/>[HashMapNotes.java]"]
end

subgraph group_js_lessons["JavaScript Lessons"]
  node_js_lessons["JavaScript Examples"]
end

node_learner(("Learner"))
node_example_output["Computed Output"]

node_learner -->|"runs exercises"| node_root_problems
node_learner -->|"calls method"| node_search_insert
node_learner -->|"runs example"| node_hashmap_examples
node_learner -->|"runs example"| node_main_examples
node_learner -->|"runs example"| node_recursion
node_learner -->|"runs example"| node_string_lessons
node_learner -->|"runs examples"| node_js_lessons
node_main_examples -->|"prints results"| node_example_output
node_recursion -->|"prints results"| node_example_output
node_string_lessons -->|"prints results"| node_example_output
node_map_functions -->|"references"| node_hashmap_examples
node_recursion -->|"references"| node_main_examples
node_two_pointer -->|"references"| node_main_examples
node_string_lessons -->|"references"| node_string_problems
node_hashmap_notes -->|"references"| node_main_examples

click node_search_insert "https://github.com/team-codebug/leetcode/blob/main/35SearchInsertPosition.java"
click node_roman "https://github.com/team-codebug/leetcode/blob/main/13RomanToInteger.java"
click node_hashmap_examples "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapDemo.java"
click node_map_questions "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapQuestions.java"
click node_hashmap_api "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/HashMapApis.java"
click node_main_examples "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/Main.java"
click node_string_problems "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/StringProblems.java"
click node_search_examples "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/BinarySearch.java"
click node_sort_examples "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MergeSort.java"
click node_recursion "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Recursion.java"
click node_two_pointer "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/TwoPointer.java"
click node_map_functions "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/MapFunctions.java"
click node_string_lessons "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Strings2.java"
click node_hashmap_notes "https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapNotes.java"
click node_js_lessons "https://github.com/team-codebug/leetcode/tree/main/NewtonSchoolStudentsDemo/Javascript"

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_root_problems,node_search_insert,node_roman toneBlue
class node_hashmap_examples,node_map_questions,node_hashmap_api,node_main_examples,node_string_problems,node_search_examples,node_sort_examples,node_recursion,node_two_pointer,node_map_functions,node_string_lessons,node_hashmap_notes toneAmber
class node_js_lessons toneMint
class node_learner,node_example_output toneIndigo
```

## Components

### Java Exercises

- **LeetCode Problems**
- [Search Insert](https://github.com/team-codebug/leetcode/blob/main/35SearchInsertPosition.java): `35SearchInsertPosition.java`
- [Roman Conversion](https://github.com/team-codebug/leetcode/blob/main/13RomanToInteger.java): `13RomanToInteger.java`

### Java Lessons

- [Map Examples](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapDemo.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapDemo.java`
- [Map Questions](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapQuestions.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MapQuestions.java`
- [HashMap APIs](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/HashMapApis.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/HashMapApis.java`
- [Algorithm Examples](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/Main.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/Main.java`
- [String Problems](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/StringProblems.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/StringProblems.java`
- [Search Algorithms](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/BinarySearch.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/BinarySearch.java`
- [Sorting Algorithms](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MergeSort.java): `NewtonSchoolStudentsDemo/HashMapDemo/src/com/anujbrandy/MergeSort.java`
- [Recursion Examples](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Recursion.java): `NewtonSchoolStudentsDemo/Recursion.java`
- [Two Pointer Examples](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/TwoPointer.java): `NewtonSchoolStudentsDemo/TwoPointer.java`
- [Map Functions](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/MapFunctions.java): `NewtonSchoolStudentsDemo/MapFunctions.java`
- [String Exercises](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/Strings2.java): `NewtonSchoolStudentsDemo/Strings2.java`
- [HashMap Notes](https://github.com/team-codebug/leetcode/blob/main/NewtonSchoolStudentsDemo/HashMapNotes.java): `NewtonSchoolStudentsDemo/HashMapNotes.java`

### JavaScript Lessons

- [JavaScript Examples](https://github.com/team-codebug/leetcode/tree/main/NewtonSchoolStudentsDemo/Javascript): `NewtonSchoolStudentsDemo/Javascript`

### Other components

- **Learner**
- **Computed Output**

## Connections

- Learner → LeetCode Problems: runs exercises
- Learner → Search Insert: calls method (evidence: `35SearchInsertPosition.java`)
- Learner → Map Examples: runs example
- Learner → Algorithm Examples: runs example
- Learner → Recursion Examples: runs example (evidence: `NewtonSchoolStudentsDemo/Recursion.java`)
- Learner → String Exercises: runs example (evidence: `NewtonSchoolStudentsDemo/Strings2.java`)
- Learner → JavaScript Examples: runs examples (evidence: `NewtonSchoolStudentsDemo/Javascript/18/first.js`)
- Algorithm Examples → Computed Output: prints results
- Recursion Examples → Computed Output: prints results (evidence: `NewtonSchoolStudentsDemo/Recursion.java`)
- String Exercises → Computed Output: prints results (evidence: `NewtonSchoolStudentsDemo/Strings2.java`)
- Map Functions → Map Examples: references (evidence: `NewtonSchoolStudentsDemo/MapFunctions.java`)
- Recursion Examples → Algorithm Examples: references (evidence: `NewtonSchoolStudentsDemo/Recursion.java`)
- Two Pointer Examples → Algorithm Examples: references (evidence: `NewtonSchoolStudentsDemo/TwoPointer.java`)
- String Exercises → String Problems: references (evidence: `NewtonSchoolStudentsDemo/Strings2.java`)
- HashMap Notes → Algorithm Examples: references (evidence: `NewtonSchoolStudentsDemo/HashMapNotes.java`)
