In this repo you will find a collection of 2500+ Java solutions to Leetcode coding problems and unit tests.
I participated in Leetcode for quite some time,
peaking in a 500-day streak of solving the daily challenge,
even earning a free T-Shirt (which turned out to kind of small and could not be exchanged for a larger one unless shipped back to China :)
Most solutions have been successfully submitted.
Many come with JUnit tests using test data found in the problem descriptions.
This project requires Maven and Java 17.
It has neither compile nor run-time, only test dependencies.
Unit tests are based on JUnit 5 and @ParameterizedTest.
The code is structured as a typical standard Maven project and fairly self-explanatory.
Solutions are named ProblemNNNN, tests are named ProblemNNNNTest
where NNNN is the problem number formatted to four digits.
To build the project simply type: mvn
(defaults to mvn clean verify
)
-
Use as you wish and as you feel fit.
-
No warranty given.
-
No need to give credit.
Hope you will find it useful.
** Happy coding! **
My free T-Shirt (says 'Large' but fits like 'Medium')