# akene-uzezi/leetcode architecture

> Architecture diagram of the GitHub repository akene-uzezi/leetcode, 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/akene-uzezi/leetcode
- Repository: https://github.com/akene-uzezi/leetcode

## Overview

This repository is a small collection of standalone Go algorithm examples, not a single application. Each `main.go` has its own hard-coded input and demonstrates an array or string operation. The palindrome checker is unfinished and is not called; the string example instead reverses and prints a string. No README or broader runtime workflow is present.

Main entry points: [`apply-operations-to-an-array/main.go`](https://github.com/akene-uzezi/leetcode/blob/main/apply-operations-to-an-array/main.go) (Apply demo), [`move-zeros-back/main.go`](https://github.com/akene-uzezi/leetcode/blob/main/move-zeros-back/main.go) (Move zeros demo), [`removeduplicates/main.go`](https://github.com/akene-uzezi/leetcode/blob/main/removeduplicates/main.go) (Deduplicate demo), [`valid-palindrome/main.go`](https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go) (String demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Array examples"]
  node_apply_main["Apply demo<br/>[main.go]"]
  node_apply_ops["Apply operations<br/>[main.go]"]
  node_move_main["Move zeros demo<br/>[main.go]"]
  node_move_zeros["Move zeros<br/>[main.go]"]
  node_dedupe_main["Deduplicate demo<br/>[main.go]"]
  node_dedupe["Remove duplicates<br/>[main.go]"]
end

subgraph group_strings["String example"]
  node_string_main["String demo<br/>[main.go]"]
  node_reverse["Reverse string<br/>[main.go]"]
  node_palindrome["Palindrome checker<br/>[main.go]"]
end

node_runner(("Program runner"))
node_stdout["Standard output"]

node_runner -->|"runs"| node_apply_main
node_runner -->|"runs"| node_move_main
node_runner -->|"runs"| node_dedupe_main
node_runner -->|"runs"| node_string_main
node_apply_main -->|"calls"| node_apply_ops
node_apply_ops -->|"returns slice"| node_apply_main
node_apply_main -->|"prints result"| node_stdout
node_move_main -->|"calls"| node_move_zeros
node_move_zeros -->|"mutates slice"| node_move_main
node_move_main -->|"prints slice"| node_stdout
node_dedupe_main -->|"calls"| node_dedupe
node_dedupe -->|"returns count"| node_dedupe_main
node_dedupe_main -->|"prints count"| node_stdout
node_string_main -->|"calls"| node_reverse
node_reverse -->|"returns string"| node_string_main
node_string_main -->|"prints string"| node_stdout

click node_apply_main "https://github.com/akene-uzezi/leetcode/blob/main/apply-operations-to-an-array/main.go"
click node_apply_ops "https://github.com/akene-uzezi/leetcode/blob/main/apply-operations-to-an-array/main.go"
click node_move_main "https://github.com/akene-uzezi/leetcode/blob/main/move-zeros-back/main.go"
click node_move_zeros "https://github.com/akene-uzezi/leetcode/blob/main/move-zeros-back/main.go"
click node_dedupe_main "https://github.com/akene-uzezi/leetcode/blob/main/removeduplicates/main.go"
click node_dedupe "https://github.com/akene-uzezi/leetcode/blob/main/removeduplicates/main.go"
click node_string_main "https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go"
click node_reverse "https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go"
click node_palindrome "https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go"

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_apply_main,node_apply_ops,node_move_main,node_move_zeros,node_dedupe_main,node_dedupe toneBlue
class node_string_main,node_reverse,node_palindrome toneAmber
class node_runner,node_stdout toneIndigo
```

## Components

### Array examples

- [Apply demo](https://github.com/akene-uzezi/leetcode/blob/main/apply-operations-to-an-array/main.go): `apply-operations-to-an-array/main.go`
- [Apply operations](https://github.com/akene-uzezi/leetcode/blob/main/apply-operations-to-an-array/main.go): `apply-operations-to-an-array/main.go`
- [Move zeros demo](https://github.com/akene-uzezi/leetcode/blob/main/move-zeros-back/main.go): `move-zeros-back/main.go`
- [Move zeros](https://github.com/akene-uzezi/leetcode/blob/main/move-zeros-back/main.go): `move-zeros-back/main.go`
- [Deduplicate demo](https://github.com/akene-uzezi/leetcode/blob/main/removeduplicates/main.go): `removeduplicates/main.go`
- [Remove duplicates](https://github.com/akene-uzezi/leetcode/blob/main/removeduplicates/main.go): `removeduplicates/main.go`

### String example

- [String demo](https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go): `valid-palindrome/main.go`
- [Reverse string](https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go): `valid-palindrome/main.go`
- [Palindrome checker](https://github.com/akene-uzezi/leetcode/blob/main/valid-palindrome/main.go): `valid-palindrome/main.go`

### Other components

- **Program runner**
- **Standard output**

## Connections

- Program runner → Apply demo: runs
- Program runner → Move zeros demo: runs
- Program runner → Deduplicate demo: runs
- Program runner → String demo: runs
- Apply demo → Apply operations: calls
- Apply operations → Apply demo: returns slice
- Apply demo → Standard output: prints result
- Move zeros demo → Move zeros: calls
- Move zeros → Move zeros demo: mutates slice
- Move zeros demo → Standard output: prints slice
- Deduplicate demo → Remove duplicates: calls
- Remove duplicates → Deduplicate demo: returns count
- Deduplicate demo → Standard output: prints count
- String demo → Reverse string: calls
- Reverse string → String demo: returns string
- String demo → Standard output: prints string
