Skip to content

Commit 2a38b39

Browse files
committed
Finished day 4
1 parent 7728f64 commit 2a38b39

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To run all solutions, simply run `./gradlew run`. If you want to run the solutio
2222
| 1 |||
2323
| 2 |||
2424
| 3 |||
25-
| 4 || |
25+
| 4 || |
2626
| 5 |||
2727
| 6 |||
2828
| 7 |||
@@ -44,6 +44,6 @@ To run all solutions, simply run `./gradlew run`. If you want to run the solutio
4444
| 23 |||
4545
| 24 |||
4646
| 25 |||
47-
| **SUM** | **4 ⭐** | **3** |
47+
| **SUM** | **4 ⭐** | **4** |
4848

49-
Total: 7
49+
Total: 8

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
// project meta data
66
group 'de.havox_design.aoc2015'
7-
version '0.3.5'
7+
version '0.3.6'
88

99
// Switch to gradle "all" distribution.
1010
wrapper {

day04/src/main/java/de/havox_design/aoc2015/day04/AdventCoins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public int solvePart2() {
3131
}
3232

3333
private int detectSecretNumberForHashStart(String prefix) {
34-
for(int i = 0; i < Integer.MAX_VALUE; i++) {
34+
for (int i = 0; i < Integer.MAX_VALUE; i++) {
3535
String combinedKey = input + i;
3636
String md5Hash = DigestUtils.md5Hex(combinedKey);
3737

38-
if(md5Hash.startsWith(prefix)) {
38+
if (md5Hash.startsWith(prefix)) {
3939
return i;
4040
}
4141
}

0 commit comments

Comments
 (0)