# rishabhkumar2201/leetcode-companywise-interview-questions architecture

> Architecture diagram of the GitHub repository rishabhkumar2201/leetcode-companywise-interview-questions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rishabhkumar2201/leetcode-companywise-interview-questions
- Repository: https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions

## Overview

This repository is a company-indexed LeetCode interview-question dataset, with a Java Selenium scraper for refreshing it. The user-facing workflow is to browse company CSVs by recency and filter their difficulty, acceptance, or frequency columns in a spreadsheet; contributors can run the scraper to log in, collect company question pages, parse problem records, and export CSV snapshots. Scraper internals are shown only in partial excerpts, so the graph limits internal links to relationships visible there and in the README.

Main entry points: [`src/main/java/Scraper.java`](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Scraper.java) (Browser scraper), [`src/main/java/Main.java`](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Main.java) (Java entry point), [`amazon/all.csv`](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/amazon/all.csv) (Company CSV snapshots), [`src/main/java/model/ProblemStatement.java`](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/model/ProblemStatement.java) (Problem record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dataset["Question dataset"]
  node_csvs["Company CSV snapshots<br/>[all.csv]"]
end

subgraph group_scraper["Scraper runtime"]
  node_main["Java entry point<br/>[Main.java]"]
  node_scraper["Browser scraper<br/>[Scraper.java]"]
  node_extract["Problem extraction<br/>[Scraper.java]"]
  node_problem["Problem record"]
end

node_user(("Contributor / reader"))
node_leetcode["LeetCode"]

node_user -->|"filters CSVs"| node_csvs
node_user -.->|"runs scraper"| node_main
node_main -->|"starts setup"| node_scraper
node_scraper -->|"browses pages"| node_leetcode
node_scraper -->|"parses pages"| node_extract
node_extract -->|"creates records"| node_problem
node_scraper -->|"exports CSVs"| node_csvs

click node_csvs "https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/amazon/all.csv"
click node_main "https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Main.java"
click node_scraper "https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Scraper.java"
click node_extract "https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Scraper.java"
click node_problem "https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/model/ProblemStatement.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_csvs toneBlue
class node_main,node_scraper,node_extract,node_problem toneAmber
class node_user,node_leetcode toneIndigo
```

## Components

### Question dataset

- [Company CSV snapshots](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/amazon/all.csv): `amazon/all.csv`

### Scraper runtime

- [Java entry point](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Main.java): `src/main/java/Main.java`
- [Browser scraper](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Scraper.java): `src/main/java/Scraper.java`
- [Problem extraction](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/Scraper.java): `src/main/java/Scraper.java`
- [Problem record](https://github.com/rishabhkumar2201/leetcode-companywise-interview-questions/blob/master/src/main/java/model/ProblemStatement.java): `src/main/java/model/ProblemStatement.java`

### Other components

- **Contributor / reader**
- **LeetCode**

## Connections

- Contributor / reader → Company CSV snapshots: filters CSVs (evidence: `README.md`)
- Contributor / reader → Java entry point: runs scraper
- Java entry point → Browser scraper: starts setup (evidence: `src/main/java/Main.java`)
- Browser scraper → LeetCode: browses pages (evidence: `src/main/java/Scraper.java`)
- Browser scraper → Problem extraction: parses pages (evidence: `src/main/java/Scraper.java`)
- Problem extraction → Problem record: creates records (evidence: `src/main/java/Scraper.java`)
- Browser scraper → Company CSV snapshots: exports CSVs (evidence: `src/main/java/Scraper.java`)
