# safan11/tcs-nqt-coding-questions architecture

> Architecture diagram of the GitHub repository safan11/tcs-nqt-coding-questions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/safan11/tcs-nqt-coding-questions
- Repository: https://github.com/safan11/tcs-nqt-coding-questions

## Overview

This repository is a collection of standalone Java solutions for TCS-NQT coding practice, not a single application. Users select a problem, provide input where the program prompts for it (or use the embedded example), and receive a printed result. The principal stages are choosing a problem domain, running its independent solution, and viewing the answer. The README documents array, number, number-system, sorting, string, and previously asked-question collections; the graph groups those solution areas. Sampled files show local console input/output and, in sorting examples, algorithm routines called by their own main method. Other internal links are omitted because the solutions are independent.

Main entry points: [`Problems_on_Arrays`](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_on_Arrays) (Array solutions), [`Problems_On_Number`](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number) (Number solutions), [`Problems_On_Number_System`](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number_System) (Conversion solutions), [`Problems_On_Sorting`](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Sorting) (Sorting solutions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arrays["Array problems"]
  node_array_solutions["Array solutions"]
  node_array_output["Array results"]
end

subgraph group_numbers["Number problems"]
  node_number_solutions["Number solutions"]
  node_number_output["Number results"]
end

subgraph group_numsys["Number systems"]
  node_conversion_solutions["Conversion solutions"]
  node_conversion_output["Conversion results"]
end

subgraph group_sorting["Sorting"]
  node_sorting_solutions["Sorting solutions"]
  node_sorting_output["Sorted arrays"]
end

subgraph group_strings["String problems"]
  node_string_solutions["String solutions"]
  node_string_output["String results"]
end

subgraph group_past["Past questions"]
  node_past_solutions["Previously asked"]
  node_past_output["Past results"]
end

node_user(("Practice user"))

node_user -->|"selects and inputs"| node_array_solutions
node_array_solutions -->|"prints results"| node_array_output
node_user -->|"selects and inputs"| node_number_solutions
node_number_solutions -->|"prints results"| node_number_output
node_user -->|"selects input"| node_conversion_solutions
node_conversion_solutions -->|"returns or prints"| node_conversion_output
node_user -->|"selects and inputs"| node_sorting_solutions
node_sorting_solutions -->|"prints sorted data"| node_sorting_output
node_user -->|"selects and inputs"| node_string_solutions
node_string_solutions -->|"prints results"| node_string_output
node_user -->|"selects and inputs"| node_past_solutions
node_past_solutions -->|"prints results"| node_past_output

click node_array_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_on_Arrays"
click node_number_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number"
click node_conversion_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number_System"
click node_sorting_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Sorting"
click node_string_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_String"
click node_past_solutions "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Previously_Asked_Coding_Question"
click node_array_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_on_Arrays"
click node_number_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number"
click node_conversion_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number_System"
click node_sorting_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Sorting"
click node_string_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_String"
click node_past_output "https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Previously_Asked_Coding_Question"

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_array_solutions,node_array_output,node_user toneBlue
class node_number_solutions,node_number_output toneAmber
class node_conversion_solutions,node_conversion_output toneMint
class node_sorting_solutions,node_sorting_output toneRose
class node_string_solutions,node_string_output toneIndigo
class node_past_solutions,node_past_output toneTeal
```

## Components

### Array problems

- [Array solutions](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_on_Arrays): `Problems_on_Arrays`
- [Array results](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_on_Arrays): `Problems_on_Arrays`

### Number problems

- [Number solutions](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number): `Problems_On_Number`
- [Number results](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number): `Problems_On_Number`

### Number systems

- [Conversion solutions](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number_System): `Problems_On_Number_System`
- [Conversion results](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Number_System): `Problems_On_Number_System`

### Sorting

- [Sorting solutions](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Sorting): `Problems_On_Sorting`
- [Sorted arrays](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_Sorting): `Problems_On_Sorting`

### String problems

- [String solutions](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_String): `Problems_On_String`
- [String results](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Problems_On_String): `Problems_On_String`

### Past questions

- [Previously asked](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Previously_Asked_Coding_Question): `Previously_Asked_Coding_Question`
- [Past results](https://github.com/safan11/tcs-nqt-coding-questions/tree/main/Previously_Asked_Coding_Question): `Previously_Asked_Coding_Question`

### Other components

- **Practice user**

## Connections

- Practice user → Array solutions: selects and inputs
- Array solutions → Array results: prints results
- Practice user → Number solutions: selects and inputs
- Number solutions → Number results: prints results
- Practice user → Conversion solutions: selects input
- Conversion solutions → Conversion results: returns or prints
- Practice user → Sorting solutions: selects and inputs
- Sorting solutions → Sorted arrays: prints sorted data
- Practice user → String solutions: selects and inputs
- String solutions → String results: prints results
- Practice user → Previously asked: selects and inputs
- Previously asked → Past results: prints results
