# m-saad-k/hackerrank-max-unique-substring-length-in-a-session architecture

> Architecture diagram of the GitHub repository m-saad-k/hackerrank-max-unique-substring-length-in-a-session, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session
- Repository: https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session

## Overview

This is a small Python script that computes the longest sequence of distinct alphabetic characters under its reset rules. Its entry point calls the function with a hardcoded sample and prints the result; it does not read user input. The function resets its current sequence on nonletters or repeated characters. The graph reflects the single provided source file.

Main entry points: [`main.py`](https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session/blob/main/main.py) (Script entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_runner(("Script runner"))
node_entry["Script entry<br/>[main.py]"]
node_length_fn["Length function<br/>[main.py]"]
node_stdout(("Terminal output"))

node_runner -->|"runs"| node_entry
node_entry -->|"calls"| node_length_fn
node_length_fn -->|"returns length"| node_entry
node_entry -->|"prints result"| node_stdout

click node_entry "https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session/blob/main/main.py"
click node_length_fn "https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session/blob/main/main.py"

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_runner,node_stdout toneIndigo
class node_entry,node_length_fn toneTeal
```

## Components

### Other components

- **Script runner**
- [Script entry](https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session/blob/main/main.py): `main.py`
- [Length function](https://github.com/m-saad-k/hackerrank-max-unique-substring-length-in-a-session/blob/main/main.py): `main.py`
- **Terminal output**

## Connections

- Script runner → Script entry: runs
- Script entry → Length function: calls
- Length function → Script entry: returns length
- Script entry → Terminal output: prints result
