# sarayuyalagandula/leetcode architecture

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

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

## Overview

This repository is a small collection of independent C solutions to LeetCode problems, not a connected application. The user-facing workflow is to provide problem inputs to a solution function and receive its computed result. The solutions cover string transformations and scoring, array/operation calculations, and integer arithmetic. Source excerpts show each function’s computation and return value, but do not show a caller or execution harness, so invocation links are marked unverified.

Main entry points: [`1108-defanging-an-ip-address/1108-defanging-an-ip-address.c`](https://github.com/sarayuyalagandula/leetcode/blob/main/1108-defanging-an-ip-address/1108-defanging-an-ip-address.c) (Defang IP), [`3110-score-of-a-string/3110-score-of-a-string.c`](https://github.com/sarayuyalagandula/leetcode/blob/main/3110-score-of-a-string/3110-score-of-a-string.c) (String score), [`3838-weighted-word-mapping/3838-weighted-word-mapping.c`](https://github.com/sarayuyalagandula/leetcode/blob/main/3838-weighted-word-mapping/3838-weighted-word-mapping.c) (Weighted mapping), [`2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.c`](https://github.com/sarayuyalagandula/leetcode/blob/main/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.c) (Final operation value)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strings["String algorithms"]
  node_defang["Defang IP"]
  node_score["String score"]
  node_weighted["Weighted mapping"]
end

subgraph group_arrays["Array operations"]
  node_final_value["Final operation value"]
  node_min_ops["Divisibility operations"]
end

subgraph group_numbers["Integer arithmetic"]
  node_mirror["Mirror distance"]
end

node_user(("Problem caller"))

node_user -.->|"invokes"| node_defang
node_defang -.->|"returns string"| node_user
node_user -.->|"invokes"| node_score
node_score -.->|"returns score"| node_user
node_user -.->|"invokes"| node_weighted
node_weighted -.->|"returns string"| node_user
node_user -.->|"invokes"| node_final_value
node_final_value -.->|"returns value"| node_user
node_user -.->|"invokes"| node_min_ops
node_min_ops -.->|"returns remainder"| node_user
node_user -.->|"invokes"| node_mirror
node_mirror -.->|"returns distance"| node_user

click node_defang "https://github.com/sarayuyalagandula/leetcode/blob/main/1108-defanging-an-ip-address/1108-defanging-an-ip-address.c"
click node_score "https://github.com/sarayuyalagandula/leetcode/blob/main/3110-score-of-a-string/3110-score-of-a-string.c"
click node_weighted "https://github.com/sarayuyalagandula/leetcode/blob/main/3838-weighted-word-mapping/3838-weighted-word-mapping.c"
click node_final_value "https://github.com/sarayuyalagandula/leetcode/blob/main/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.c"
click node_min_ops "https://github.com/sarayuyalagandula/leetcode/blob/main/3512-minimum-operations-to-make-array-sum-divisible-by-k/3512-minimum-operations-to-make-array-sum-divisible-by-k.c"
click node_mirror "https://github.com/sarayuyalagandula/leetcode/blob/main/3783-mirror-distance-of-an-integer/3783-mirror-distance-of-an-integer.c"

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_defang,node_score,node_weighted toneBlue
class node_final_value,node_min_ops toneAmber
class node_mirror toneMint
class node_user toneIndigo
```

## Components

### String algorithms

- [Defang IP](https://github.com/sarayuyalagandula/leetcode/blob/main/1108-defanging-an-ip-address/1108-defanging-an-ip-address.c): `1108-defanging-an-ip-address/1108-defanging-an-ip-address.c`
- [String score](https://github.com/sarayuyalagandula/leetcode/blob/main/3110-score-of-a-string/3110-score-of-a-string.c): `3110-score-of-a-string/3110-score-of-a-string.c`
- [Weighted mapping](https://github.com/sarayuyalagandula/leetcode/blob/main/3838-weighted-word-mapping/3838-weighted-word-mapping.c): `3838-weighted-word-mapping/3838-weighted-word-mapping.c`

### Array operations

- [Final operation value](https://github.com/sarayuyalagandula/leetcode/blob/main/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.c): `2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.c`
- [Divisibility operations](https://github.com/sarayuyalagandula/leetcode/blob/main/3512-minimum-operations-to-make-array-sum-divisible-by-k/3512-minimum-operations-to-make-array-sum-divisible-by-k.c): `3512-minimum-operations-to-make-array-sum-divisible-by-k/3512-minimum-operations-to-make-array-sum-divisible-by-k.c`

### Integer arithmetic

- [Mirror distance](https://github.com/sarayuyalagandula/leetcode/blob/main/3783-mirror-distance-of-an-integer/3783-mirror-distance-of-an-integer.c): `3783-mirror-distance-of-an-integer/3783-mirror-distance-of-an-integer.c`

### Other components

- **Problem caller**

## Connections

- Problem caller → Defang IP: invokes
- Defang IP → Problem caller: returns string
- Problem caller → String score: invokes
- String score → Problem caller: returns score
- Problem caller → Weighted mapping: invokes
- Weighted mapping → Problem caller: returns string
- Problem caller → Final operation value: invokes
- Final operation value → Problem caller: returns value
- Problem caller → Divisibility operations: invokes
- Divisibility operations → Problem caller: returns remainder
- Problem caller → Mirror distance: invokes
- Mirror distance → Problem caller: returns distance
