Skip to content

Commit 8809659

Browse files
committed
Prepare for publication
1 parent 591fc3d commit 8809659

File tree

5 files changed

+72
-6
lines changed

5 files changed

+72
-6
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023- Markus S.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Java Solutions to Leetcode Problems
2+
3+
In this repo you will find a collection of 2500+ Java solutions to Leetcode coding problems and unit tests.
4+
5+
I participated in Leetcode for quite some time, <br>
6+
peaking in a 500-day streak of solving the daily challenge, <br>
7+
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 :)
8+
9+
<figure>
10+
<img src="src/test/resources/img/my-leetcode-streak.jpeg" alt="Streak">
11+
<figcaption>500-Day Streak</figcaption>
12+
</figure>
13+
14+
Most solutions have been successfully submitted. <br>
15+
Many come with JUnit tests using test data found in the problem descriptions.
16+
17+
This project requires Maven and Java 17.<br>
18+
It has neither compile nor run-time, only test dependencies.<br>
19+
Unit tests are based on JUnit 5 and @ParameterizedTest.<br>
20+
The code is structured as a typical standard Maven project and fairly self-explanatory.<br>
21+
Solutions are named *ProblemNNNN*, tests are named *ProblemNNNNTest*<br>
22+
where *NNNN* is the problem number formatted to four digits.<br>
23+
To build the project simply type: `mvn` (defaults to `mvn clean verify`)
24+
25+
- Use as you wish and as you feel fit.<br><br>
26+
27+
- No warranty given.<br><br>
28+
29+
- No need to give credit.<br><br>
30+
31+
Hope you will find it useful.
32+
33+
** Happy coding! **
34+
35+
<br>
36+
37+
<figure>
38+
<img src="src/test/resources/img/my-leetcode-tee.jpeg" alt="Free Tee">
39+
<figcaption>My free T-Shirt (says 'Large' but fits like 'Medium')</figcaption>
40+
</figure>

pom.xml

+11-6
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@
1414
<packaging>jar</packaging>
1515

1616
<name>${project.artifactId}</name>
17-
<description>Solutions to Leetcode coding problems.</description>
17+
<description>2500+ solutions to Leetcode coding problems</description>
1818
<url>https://github.com/${developerId}/${project.artifactId}</url>
1919
<inceptionYear>2023</inceptionYear>
2020

21+
<licenses>
22+
<license>
23+
<name>MIT License</name>
24+
<url>${project.url}/blob/master/LICENSE</url>
25+
</license>
26+
</licenses>
27+
2128
<developers>
2229
<developer>
2330
<id>${developerId}</id>
24-
<name>Markus Spann</name>
31+
<name>Markus S.</name>
2532
<email>[email protected]</email>
2633
<organizationUrl>https://github.com/${developerId}/</organizationUrl>
27-
<timezone>+1</timezone>
2834
</developer>
2935
</developers>
3036

@@ -121,6 +127,7 @@
121127
<defaultGoal>clean verify</defaultGoal>
122128

123129
<pluginManagement>
130+
124131
<plugins>
125132

126133
<plugin>
@@ -154,8 +161,6 @@
154161
</plugins>
155162
</pluginManagement>
156163

157-
<plugins/>
158-
159164
</build>
160165

161166
<profiles>
@@ -168,7 +173,7 @@
168173
<properties>
169174
<!-- skip _compiling_ the tests -->
170175
<maven.test.skip>true</maven.test.skip>
171-
<!-- skip the tests -->
176+
<!-- skip test execution -->
172177
<skipTests>true</skipTests>
173178

174179
<maven.javadoc.skip>true</maven.javadoc.skip>
30.4 KB
Loading
39.2 KB
Loading

0 commit comments

Comments
 (0)