Overview
This repository is organized to store my past LeetCode competition questions, along with the Java solutions and templates prepared in a Maven project structure. It is intended for programmers preparing for coding competitions or interviews, offering a structured environment to run and test solutions efficiently.
Repository Structure
-
6.8.24-weeklyContest: Contains solutions for a specific contest held on June 8, 2024.
- src: Source files including main Java solutions and test cases.
- target: Compiled classes and Maven-generated files.
- _submissions: Final submissions and additional README for the contest.
-
competitionTemplate: A template structure for upcoming competition practice.
- src: Java solution templates and test scaffolding.
- target: Build output directory for compiled Java classes and test results.
Each contest and template directory includes:
pom.xml
for Maven dependencies.- Java source files under
src/main/java
. - Java test files under
src/test/java
. - Compiled outputs in
target
.
How to Use the Template
-
Navigate to the Template Folder:
cd competitionTemplate
-
Customize the Template:
- Update
Solution1.java
,Solution2.java
, etc., with your solutions. - Write your tests in
TestSolutions.java
.
- Update
-
Build the Project (Requires Maven):
mvn clean install
-
Run Tests:
mvn test
LeetCode Competitions
LeetCode hosts weekly competitions every Saturday at 10:30 PM EST. These contests provide an excellent opportunity to practice and improve your problem-solving skills in a timed environment. Each contest typically consists of four problems of varying difficulty, and participants are ranked based on their performance.
You can find more information and register for upcoming competitions on the LeetCode Contests Page.
Support
Open to employment - Dmerskine19@gmail.com https://dmerskine19.github.io/DrewErskine-Resume/