# shekhar6264/js architecture

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

- Interactive diagram: https://gitdiagram.com/shekhar6264/js
- Repository: https://github.com/shekhar6264/js

## Overview

This repository is a collection of standalone Python algorithm examples, not a single application: users supply inputs to individual scripts or functions and receive computed results. Its capabilities span array and string processing, searching and sorting, recursion and dynamic programming, graph and tree problems, data structures, and interval handling. The graph groups these independent algorithm families and highlights sampled implementations. There is no shared runtime orchestrator or demonstrated cross-module flow; source excerpts and the index support only the shown internal algorithm calls.

Main entry points: [`Sorting`](https://github.com/shekhar6264/js/tree/main/Sorting) (Sorting algorithms), [`Recursion`](https://github.com/shekhar6264/js/tree/main/Recursion) (Recursion problems), [`Arrays`](https://github.com/shekhar6264/js/tree/main/Arrays) (Array operations), [`SlidingWindow`](https://github.com/shekhar6264/js/tree/main/SlidingWindow) (Sliding windows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Array and string algorithms"]
  node_array_ops["Array operations"]
  node_sliding["Sliding windows"]
  node_two_pointers["Two pointers"]
  node_string_ops["String algorithms"]
  node_hashing["Hashing problems"]
end

subgraph group_search_sort["Search and sorting"]
  node_binary_search["Binary search"]
  node_sorting["Sorting algorithms"]
end

subgraph group_graphs_trees["Graph and tree algorithms"]
  node_bst["BST operations"]
  node_binary_trees["Binary-tree algorithms"]
  node_graph_algorithms["Graph algorithms"]
  node_oa_graphs["Graph exercises"]
end

subgraph group_problem_solving["Recursion and dynamic programming"]
  node_recursion["Recursion problems"]
  node_dp["Dynamic programming"]
end

subgraph group_structures["Structures and intervals"]
  node_linked_lists["Linked-list problems"]
  node_stacks["Stacks and queues"]
  node_intervals["Interval algorithms"]
end

node_user(("Input provider"))
node_result["Computed result"]

node_user -->|"provides input"| node_array_ops
node_array_ops -->|"returns result"| node_result
node_user -->|"provides input"| node_sliding
node_sliding -->|"prints result"| node_result
node_user -->|"provides input"| node_two_pointers
node_two_pointers -->|"prints result"| node_result
node_user -->|"provides input"| node_binary_search
node_binary_search -->|"prints result"| node_result
node_user -->|"provides input"| node_sorting
node_sorting -->|"prints result"| node_result
node_sorting -->|"counts inversions"| node_array_ops
node_user -.->|"provides tree"| node_binary_trees
node_binary_trees -.->|"returns traversal"| node_result
node_user -.->|"provides graph or grid"| node_graph_algorithms
node_graph_algorithms -.->|"returns solution"| node_result
node_user -->|"provides grid"| node_oa_graphs
node_oa_graphs -->|"prints count"| node_result
node_user -->|"provides input"| node_recursion
node_recursion -->|"prints permutations"| node_result
node_recursion -.->|"solves related problems"| node_dp
node_user -->|"provides intervals"| node_intervals
node_intervals -->|"prints merged intervals"| node_result
node_user -->|"provides list"| node_linked_lists
node_linked_lists -->|"returns boolean"| node_result
node_user -->|"uses queue"| node_stacks
node_stacks -->|"prints queue values"| node_result

click node_array_ops "https://github.com/shekhar6264/js/tree/main/Arrays"
click node_sliding "https://github.com/shekhar6264/js/tree/main/SlidingWindow"
click node_two_pointers "https://github.com/shekhar6264/js/tree/main/Two_Pointers"
click node_string_ops "https://github.com/shekhar6264/js/tree/main/Strings"
click node_hashing "https://github.com/shekhar6264/js/tree/main/Hashing"
click node_binary_search "https://github.com/shekhar6264/js/tree/main/Binary_Search"
click node_sorting "https://github.com/shekhar6264/js/tree/main/Sorting"
click node_bst "https://github.com/shekhar6264/js/tree/main/Binary_Search_Tree"
click node_binary_trees "https://github.com/shekhar6264/js/tree/main/Binary_Trees"
click node_graph_algorithms "https://github.com/shekhar6264/js/tree/main/Graphs"
click node_oa_graphs "https://github.com/shekhar6264/js/tree/main/OA"
click node_recursion "https://github.com/shekhar6264/js/tree/main/Recursion"
click node_dp "https://github.com/shekhar6264/js/tree/main/DP"
click node_linked_lists "https://github.com/shekhar6264/js/tree/main/LinkedList"
click node_stacks "https://github.com/shekhar6264/js/tree/main/Stacks"
click node_intervals "https://github.com/shekhar6264/js/tree/main/Intervals"

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_array_ops,node_sliding,node_two_pointers,node_string_ops,node_hashing toneBlue
class node_binary_search,node_sorting toneAmber
class node_bst,node_binary_trees,node_graph_algorithms,node_oa_graphs toneMint
class node_recursion,node_dp toneRose
class node_linked_lists,node_stacks,node_intervals,node_user,node_result toneIndigo
```

## Components

### Array and string algorithms

- [Array operations](https://github.com/shekhar6264/js/tree/main/Arrays): `Arrays`
- [Sliding windows](https://github.com/shekhar6264/js/tree/main/SlidingWindow): `SlidingWindow`
- [Two pointers](https://github.com/shekhar6264/js/tree/main/Two_Pointers): `Two_Pointers`
- [String algorithms](https://github.com/shekhar6264/js/tree/main/Strings): `Strings`
- [Hashing problems](https://github.com/shekhar6264/js/tree/main/Hashing): `Hashing`

### Search and sorting

- [Binary search](https://github.com/shekhar6264/js/tree/main/Binary_Search): `Binary_Search`
- [Sorting algorithms](https://github.com/shekhar6264/js/tree/main/Sorting): `Sorting`

### Graph and tree algorithms

- [BST operations](https://github.com/shekhar6264/js/tree/main/Binary_Search_Tree): `Binary_Search_Tree`
- [Binary-tree algorithms](https://github.com/shekhar6264/js/tree/main/Binary_Trees): `Binary_Trees`
- [Graph algorithms](https://github.com/shekhar6264/js/tree/main/Graphs): `Graphs`
- [Graph exercises](https://github.com/shekhar6264/js/tree/main/OA): `OA`

### Recursion and dynamic programming

- [Recursion problems](https://github.com/shekhar6264/js/tree/main/Recursion): `Recursion`
- [Dynamic programming](https://github.com/shekhar6264/js/tree/main/DP): `DP`

### Structures and intervals

- [Linked-list problems](https://github.com/shekhar6264/js/tree/main/LinkedList): `LinkedList`
- [Stacks and queues](https://github.com/shekhar6264/js/tree/main/Stacks): `Stacks`
- [Interval algorithms](https://github.com/shekhar6264/js/tree/main/Intervals): `Intervals`

### Other components

- **Input provider**
- **Computed result**

## Connections

- Input provider → Array operations: provides input (evidence: `Arrays/count_inversions.py`)
- Array operations → Computed result: returns result (evidence: `Arrays/count_inversions.py`)
- Input provider → Sliding windows: provides input (evidence: `SlidingWindow/findmaxAverage.py`)
- Sliding windows → Computed result: prints result (evidence: `SlidingWindow/findmaxAverage.py`)
- Input provider → Two pointers: provides input (evidence: `Two_Pointers/Trapping_Rain_Water.py`)
- Two pointers → Computed result: prints result (evidence: `Two_Pointers/Trapping_Rain_Water.py`)
- Input provider → Binary search: provides input (evidence: `Binary_Search/search.py`)
- Binary search → Computed result: prints result (evidence: `Binary_Search/search.py`)
- Input provider → Sorting algorithms: provides input (evidence: `Sorting/Mergesort.py`)
- Sorting algorithms → Computed result: prints result (evidence: `Sorting/Mergesort.py`)
- Sorting algorithms → Array operations: counts inversions (evidence: `Arrays/count_inversions.py`)
- Input provider → Binary-tree algorithms: provides tree
- Binary-tree algorithms → Computed result: returns traversal
- Input provider → Graph algorithms: provides graph or grid
- Graph algorithms → Computed result: returns solution
- Input provider → Graph exercises: provides grid (evidence: `OA/Boundary_graph.py`)
- Graph exercises → Computed result: prints count (evidence: `OA/Boundary_graph.py`)
- Input provider → Recursion problems: provides input (evidence: `Recursion/permutations.py`)
- Recursion problems → Computed result: prints permutations (evidence: `Recursion/permutations.py`)
- Recursion problems → Dynamic programming: solves related problems
- Input provider → Interval algorithms: provides intervals (evidence: `Intervals/insert.py`)
- Interval algorithms → Computed result: prints merged intervals (evidence: `Intervals/insert.py`)
- Input provider → Linked-list problems: provides list (evidence: `LinkedList/Palindrome_List.py`)
- Linked-list problems → Computed result: returns boolean (evidence: `LinkedList/Palindrome_List.py`)
- Input provider → Stacks and queues: uses queue (evidence: `Stacks/Queue_Using_LinkedList.py`)
- Stacks and queues → Computed result: prints queue values (evidence: `Stacks/Queue_Using_LinkedList.py`)
