Design a Hackathon Problem statement

Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2025-04-01

Problem Statement

Design the low-level system for managing hackathons, where users (participants) can register, form teams, submit projects, and view results. The system should also support judging and scoring of submissions.


🔷 Functional Requirements:

1.Create Hackathon:
•Admin can create a new hackathon with:
•Name, description, start time, end time, max team size, allowed tech stack.
•Status: UPCOMING, ONGOING, COMPLETED.
2.User Registration:
•Users can register for a hackathon (before it starts).
•Users can create or join a team.
3.Team Management:
•A user can create a team and invite others (within max team size).
•A user can leave or disband a team before the hackathon starts.
4.Project Submission:
•Teams can submit a project once per hackathon (with title, description, GitHub link, tech stack).
5.Judging & Scoring:
•Judges can score submissions on multiple criteria (e.g., Innovation, UI/UX, Impact).
•Each submission receives average score and ranking.
6.Leaderboard:
•Display top-ranked teams per hackathon based on final score.


🔷 Constraints & Assumptions:

•A user can join only one team per hackathon.
•A team can participate in only one hackathon at a time.
•Scoring is numeric (e.g., 0–10 per criterion).
•Ignore authentication and actual file upload — simulate inputs.


🔶 Expected Design Focus:

•Model classes like: User, Hackathon, Team, Submission, Judge, Score.
•Use Enums for HackathonStatus, ScoreCriteria, etc.
•Define interfaces for scoring strategies or submission evaluators.
•Follow SOLID and OOP principles — make the system extensible.


🔷 Bonus Features (Optional):

•Support multiple rounds (e.g., Round 1 → Final).
•Enable prize distribution tracking.
•Show team activity timeline (submissions, comments, etc.)
•Add tag-based search for hackathons or projects.


✅ Sample Use Case:

1plaintext 2CopyEdit 31. Admin creates a hackathon “AI Sprint” (max team size 3). 42. User A registers, creates Team "Alpha", invites B and C. 53. Team "Alpha" submits project with title “SmartDoc” and GitHub link. 64. Judge J1 scores it: Innovation: 9, UI/UX: 7, Impact: 8. 75. Team "Alpha" appears on leaderboard with average score.


Solution

Comments