Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-w-arnold/java-hackerrank
Solutions to Java problems on hackerrank.com 🔐 🌎
https://github.com/d-w-arnold/java-hackerrank
hackerrank hackerrank-solutions java junit problem-solving
Last synced: 9 days ago
JSON representation
Solutions to Java problems on hackerrank.com 🔐 🌎
- Host: GitHub
- URL: https://github.com/d-w-arnold/java-hackerrank
- Owner: d-w-arnold
- Created: 2021-01-23T23:56:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-11T23:39:01.000Z (about 1 month ago)
- Last Synced: 2024-11-12T00:28:37.873Z (about 1 month ago)
- Topics: hackerrank, hackerrank-solutions, java, junit, problem-solving
- Language: Java
- Homepage: https://hackerrank.com
- Size: 588 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java HackerRank Solutions
[My HackerRank Profile](https://www.hackerrank.com/dwarnold)
NB. My latest solutions are in [Python](https://github.com/d-w-arnold/python-hackerrank) ^_^
The `src` directory contains a hierarchy of Java solutions for different HackerRank problems.
The `tests` directory contains a hierarchy of unit test classes, with each unit test class corresponding to a specific
HackerRank problem.### Run all Unit Tests
```shell
mvn clean test
```### Add Git Hooks
See `pre-push` shell script in `hooks/`. When pushing to the `main` branch, a push is only successful when all unit
tests pass.To utilise this `pre-push` git hook, run the following commands in the project root directory:
```shell
# Copy all repo git hooks, into the `.git/hooks/` dir.
cp -av hooks/* .git/hooks# Set all git hooks to executable, if not already set.
chmod +x .git/hooks/*
```