# abhis2007/nsec-codechef-chapter architecture

> Architecture diagram of the GitHub repository abhis2007/nsec-codechef-chapter, 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/abhis2007/nsec-codechef-chapter
- Repository: https://github.com/abhis2007/nsec-codechef-chapter

## Overview

This repository is a small collection of two independent CodeChef-style problem solutions: classifying a rating into a division, and computing a Fibonacci-based range sum. The README gives only the repository name; the map follows the sampled solution sources. Generator scripts and checked-in input/output files are omitted as test-data machinery. The Fibonacci C++ solution’s internal stages are visible in source; no broader application wiring is documented.

Main entry points: [`Encoding/ENCJMAY( MAY )/Question - ENCJMAY5/Master Solution.cpp`](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp) (Input loop), [`Encoding/Encoding Junior( MARCH )/Codechef Rating Pattern/Solution_Codechef Rating Pattern.py`](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/Encoding%20Junior(%20MARCH%20)/Codechef%20Rating%20Pattern/Solution_Codechef%20Rating%20Pattern.py) (Rating classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rating["Rating pattern"]
  node_rating_solution["Rating classifier"]
end

subgraph group_fib["Fibonacci range"]
  node_fib_main["Input loop"]
  node_fib_calc["Fibonacci values"]
  node_range_sum["Range sum"]
end

node_user(("Problem user"))
node_rating_result["Division result"]
node_fib_result["Modulo result"]

node_user -->|"provides ratings"| node_rating_solution
node_rating_solution -->|"prints division"| node_rating_result
node_user -->|"provides ranges"| node_fib_main
node_fib_main -->|"calls fib"| node_fib_calc
node_fib_calc -->|"calls gen"| node_range_sum
node_range_sum -->|"returns sum"| node_fib_main
node_fib_main -->|"prints result"| node_fib_result

click node_rating_solution "https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/Encoding%20Junior(%20MARCH%20)/Codechef%20Rating%20Pattern/Solution_Codechef%20Rating%20Pattern.py"
click node_fib_main "https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp"
click node_fib_calc "https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp"
click node_range_sum "https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp"

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_rating_solution,node_user toneBlue
class node_fib_main,node_fib_calc,node_range_sum toneAmber
class node_rating_result,node_fib_result toneIndigo
```

## Components

### Rating pattern

- [Rating classifier](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/Encoding%20Junior(%20MARCH%20)/Codechef%20Rating%20Pattern/Solution_Codechef%20Rating%20Pattern.py): `Encoding/Encoding Junior( MARCH )/Codechef Rating Pattern/Solution_Codechef Rating Pattern.py`

### Fibonacci range

- [Input loop](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp): `Encoding/ENCJMAY( MAY )/Question - ENCJMAY5/Master Solution.cpp`
- [Fibonacci values](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp): `Encoding/ENCJMAY( MAY )/Question - ENCJMAY5/Master Solution.cpp`
- [Range sum](https://github.com/abhis2007/nsec-codechef-chapter/blob/master/Encoding/ENCJMAY(%20MAY%20)/Question%20-%20ENCJMAY5/Master%20Solution.cpp): `Encoding/ENCJMAY( MAY )/Question - ENCJMAY5/Master Solution.cpp`

### Other components

- **Problem user**
- **Division result**
- **Modulo result**

## Connections

- Problem user → Rating classifier: provides ratings
- Rating classifier → Division result: prints division
- Problem user → Input loop: provides ranges
- Input loop → Fibonacci values: calls fib
- Fibonacci values → Range sum: calls gen
- Range sum → Input loop: returns sum
- Input loop → Modulo result: prints result
