# karthikreddy-7/infosys-sp-coding-questions architecture

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

- Interactive diagram: https://gitdiagram.com/karthikreddy-7/infosys-sp-coding-questions
- Repository: https://github.com/karthikreddy-7/infosys-sp-coding-questions

## Overview

This repository is a collection of standalone Java coding exercises, not a single application: each class demonstrates or is intended to implement an algorithm. Its principal usage is to select an exercise and run or adapt its class with input; the README documents several problem statements, but the sampled code shows hard-coded examples and no shared runtime or dispatch layer. The graph preserves the dynamic-programming and greedy exercise areas, including files not described in the README. No inter-component calls are evidenced, so no runtime edges are asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dp["Dynamic Programming"]
  node_bitwise_subsequence["Bitwise Subsequence"]
  node_longest_increasing["Increasing Subsequence"]
  node_max_xor["Maximum XOR Subset<br/>[MaxXORsubset.java]"]
  node_coin_change["Minimum Coin Change<br/>[MinCoinChange.java]"]
  node_subset_sum["Subset Sum<br/>[SubsetSum.java]"]
end

subgraph group_greedy["Greedy and Other"]
  node_largest_number["Largest Number<br/>[LargestNumber.java]"]
  node_birthday_gift["Birthday Gift Arrays"]
  node_employee_exercise["Employee Exercise<br/>[emp.java]"]
  node_min_platforms["Minimum Platforms<br/>[minPlatforms.java]"]
  node_wine_selling["Wine Transport<br/>[wineSelling.java]"]
end

click node_bitwise_subsequence "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/BitwiseSubsequence.java"
click node_longest_increasing "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/LongestIncreasingSub.java"
click node_max_xor "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/MaxXORsubset.java"
click node_coin_change "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/MinCoinChange.java"
click node_subset_sum "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/SubsetSum.java"
click node_largest_number "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/LargestNumber.java"
click node_birthday_gift "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/UniqueBirthdayGift.java"
click node_employee_exercise "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/emp.java"
click node_min_platforms "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/minPlatforms.java"
click node_wine_selling "https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/wineSelling.java"

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_bitwise_subsequence,node_longest_increasing,node_max_xor,node_coin_change,node_subset_sum toneBlue
class node_largest_number,node_birthday_gift,node_employee_exercise,node_min_platforms,node_wine_selling toneAmber
```

## Components

### Dynamic Programming

- [Bitwise Subsequence](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/BitwiseSubsequence.java): `DynamicProgramming/BitwiseSubsequence.java`
- [Increasing Subsequence](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/LongestIncreasingSub.java): `DynamicProgramming/LongestIncreasingSub.java`
- [Maximum XOR Subset](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/MaxXORsubset.java): `DynamicProgramming/MaxXORsubset.java`
- [Minimum Coin Change](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/MinCoinChange.java): `DynamicProgramming/MinCoinChange.java`
- [Subset Sum](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/DynamicProgramming/SubsetSum.java): `DynamicProgramming/SubsetSum.java`

### Greedy and Other

- [Largest Number](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/LargestNumber.java): `greedy/LargestNumber.java`
- [Birthday Gift Arrays](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/UniqueBirthdayGift.java): `greedy/UniqueBirthdayGift.java`
- [Employee Exercise](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/emp.java): `greedy/emp.java`
- [Minimum Platforms](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/minPlatforms.java): `greedy/minPlatforms.java`
- [Wine Transport](https://github.com/karthikreddy-7/infosys-sp-coding-questions/blob/main/greedy/wineSelling.java): `greedy/wineSelling.java`
