# ayoub0x1/c-piscine-exam architecture

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

- Interactive diagram: https://gitdiagram.com/ayoub0x1/c-piscine-exam
- Repository: https://github.com/ayoub0x1/c-piscine-exam

## Overview

This repository is a collection of standalone C exercises intended for 1337/42 exam preparation, not a single application with a runtime pipeline. The principal workflow is for a learner to browse exercises organized by exam level, practice them, and use that practice to prepare for the exam. The README also emphasizes understanding solutions and setting up exercises correctly. Source excerpts show some individual implementations, but do not establish calls between exercises; the graph therefore presents independent practice areas.

Main entry points: [`Level 04/4-2-ft_list_remove_if/ft_list_remove_if.c`](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-2-ft_list_remove_if/ft_list_remove_if.c) (List removal), [`Level 04/4-3-sort_list/sort_list.c`](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-3-sort_list/sort_list.c) (List sorting), [`Level 05/5-4-rpn_calc`](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2005/5-4-rpn_calc) (RPN calculator), [`Level 05/cycle_detector/cycle_detector.c`](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/cycle_detector/cycle_detector.c) (Cycle detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g00["Level 00"]
  node_basics["Character output"]
  node_args["Argument output"]
end

subgraph group_g01["Level 01"]
  node_strings["String operations"]
end

subgraph group_g02["Level 02"]
  node_number_ops["Number operations"]
  node_bit_ops["Bit operations"]
end

subgraph group_g03["Level 03"]
  node_list_size["List size<br/>[ft_list_size.c]"]
  node_range["Range generation"]
  node_text_parse["Text parsing"]
end

subgraph group_g04["Level 04"]
  node_list_remove["List removal"]
  node_list_remove_type["Removal list type<br/>[ft_list.h]"]
  node_list_sort["List sorting<br/>[sort_list.c]"]
  node_sort_list_type["Sort list type<br/>[list.h]"]
  node_grid_fill["Grid flood fill<br/>[flood_fill.c]"]
  node_brainfuck["Brainfuck interpreter<br/>[brainfuck.c]"]
end

subgraph group_g05["Level 05"]
  node_memory_print["Memory display<br/>[print_memory.c]"]
  node_brackets["Bracket validation<br/>[brackets.c]"]
  node_rpn["RPN calculator"]
  node_rpn_type["RPN stack type<br/>[rpn_calc.h]"]
  node_options["Option parsing<br/>[options.c]"]
  node_cycle["Cycle detection<br/>[cycle_detector.c]"]
  node_cycle_type["Cycle list type<br/>[list.h]"]
end

node_learner(("Exam learner"))

node_learner -->|"practices"| node_basics
node_learner -->|"practices"| node_args
node_learner -->|"practices"| node_strings
node_learner -->|"practices"| node_number_ops
node_learner -->|"practices"| node_bit_ops
node_learner -->|"practices"| node_list_size
node_learner -->|"practices"| node_range
node_learner -->|"practices"| node_text_parse
node_learner -->|"practices"| node_list_remove
node_learner -->|"practices"| node_list_sort
node_learner -->|"practices"| node_grid_fill
node_learner -->|"practices"| node_brainfuck
node_learner -->|"practices"| node_memory_print
node_learner -->|"practices"| node_brackets
node_learner -->|"practices"| node_rpn
node_learner -->|"practices"| node_options
node_learner -->|"practices"| node_cycle
node_list_remove -->|"uses type"| node_list_remove_type
node_list_sort -->|"uses type"| node_sort_list_type
node_rpn -->|"uses declarations"| node_rpn_type
node_cycle -->|"uses type"| node_cycle_type

click node_basics "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2000"
click node_args "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2000"
click node_strings "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2001"
click node_number_ops "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2002"
click node_bit_ops "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2002"
click node_list_size "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2003/3-0-ft_list_size/ft_list_size.c"
click node_range "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2003/3-3-ft_range/ft_range_withmain.c"
click node_text_parse "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2003"
click node_list_remove "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-2-ft_list_remove_if/ft_list_remove_if.c"
click node_list_remove_type "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-2-ft_list_remove_if/ft_list.h"
click node_list_sort "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-3-sort_list/sort_list.c"
click node_sort_list_type "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-3-sort_list/list.h"
click node_grid_fill "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/flood_fill/flood_fill.c"
click node_brainfuck "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/brainfuck/brainfuck.c"
click node_memory_print "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-1-print_memory/print_memory.c"
click node_brackets "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-3-brackets/brackets.c"
click node_rpn "https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2005/5-4-rpn_calc"
click node_rpn_type "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-4-rpn_calc/rpn_calc.h"
click node_options "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-5-options/options.c"
click node_cycle "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/cycle_detector/cycle_detector.c"
click node_cycle_type "https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/cycle_detector/list.h"

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_basics,node_args toneBlue
class node_strings toneAmber
class node_number_ops,node_bit_ops toneMint
class node_list_size,node_range,node_text_parse toneRose
class node_list_remove,node_list_remove_type,node_list_sort,node_sort_list_type,node_grid_fill,node_brainfuck,node_learner toneIndigo
class node_memory_print,node_brackets,node_rpn,node_rpn_type,node_options,node_cycle,node_cycle_type toneTeal
```

## Components

### Level 00

- [Character output](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2000): `Level 00`
- [Argument output](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2000): `Level 00`

### Level 01

- [String operations](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2001): `Level 01`

### Level 02

- [Number operations](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2002): `Level 02`
- [Bit operations](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2002): `Level 02`

### Level 03

- [List size](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2003/3-0-ft_list_size/ft_list_size.c): `Level 03/3-0-ft_list_size/ft_list_size.c`
- [Range generation](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2003/3-3-ft_range/ft_range_withmain.c): `Level 03/3-3-ft_range/ft_range_withmain.c`
- [Text parsing](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2003): `Level 03`

### Level 04

- [List removal](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-2-ft_list_remove_if/ft_list_remove_if.c): `Level 04/4-2-ft_list_remove_if/ft_list_remove_if.c`
- [Removal list type](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-2-ft_list_remove_if/ft_list.h): `Level 04/4-2-ft_list_remove_if/ft_list.h`
- [List sorting](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-3-sort_list/sort_list.c): `Level 04/4-3-sort_list/sort_list.c`
- [Sort list type](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/4-3-sort_list/list.h): `Level 04/4-3-sort_list/list.h`
- [Grid flood fill](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/flood_fill/flood_fill.c): `Level 04/flood_fill/flood_fill.c`
- [Brainfuck interpreter](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2004/brainfuck/brainfuck.c): `Level 04/brainfuck/brainfuck.c`

### Level 05

- [Memory display](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-1-print_memory/print_memory.c): `Level 05/5-1-print_memory/print_memory.c`
- [Bracket validation](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-3-brackets/brackets.c): `Level 05/5-3-brackets/brackets.c`
- [RPN calculator](https://github.com/ayoub0x1/c-piscine-exam/tree/main/Level%2005/5-4-rpn_calc): `Level 05/5-4-rpn_calc`
- [RPN stack type](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-4-rpn_calc/rpn_calc.h): `Level 05/5-4-rpn_calc/rpn_calc.h`
- [Option parsing](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/5-5-options/options.c): `Level 05/5-5-options/options.c`
- [Cycle detection](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/cycle_detector/cycle_detector.c): `Level 05/cycle_detector/cycle_detector.c`
- [Cycle list type](https://github.com/ayoub0x1/c-piscine-exam/blob/main/Level%2005/cycle_detector/list.h): `Level 05/cycle_detector/list.h`

### Other components

- **Exam learner**

## Connections

- Exam learner → Character output: practices
- Exam learner → Argument output: practices
- Exam learner → String operations: practices
- Exam learner → Number operations: practices
- Exam learner → Bit operations: practices
- Exam learner → List size: practices
- Exam learner → Range generation: practices
- Exam learner → Text parsing: practices
- Exam learner → List removal: practices
- Exam learner → List sorting: practices
- Exam learner → Grid flood fill: practices
- Exam learner → Brainfuck interpreter: practices
- Exam learner → Memory display: practices
- Exam learner → Bracket validation: practices
- Exam learner → RPN calculator: practices
- Exam learner → Option parsing: practices
- Exam learner → Cycle detection: practices
- List removal → Removal list type: uses type (evidence: `Level 04/4-2-ft_list_remove_if/ft_list_remove_if.c`)
- List sorting → Sort list type: uses type (evidence: `Level 04/4-3-sort_list/sort_list.c`)
- RPN calculator → RPN stack type: uses declarations (evidence: `Level 05/5-4-rpn_calc/main.c`)
- Cycle detection → Cycle list type: uses type (evidence: `Level 05/cycle_detector/cycle_detector.c`)
