-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
day 5 in a ridiculously inefficiently way
- Loading branch information
Showing
4 changed files
with
134 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package de.linkel.aoc | ||
|
||
import de.linkel.aoc.base.AbstractLinesAdventDay | ||
import de.linkel.aoc.base.QuizPart | ||
import jakarta.inject.Singleton | ||
|
||
@Singleton | ||
class Day06: AbstractLinesAdventDay<Int>() { | ||
override val day = 5 | ||
|
||
override fun process(part: QuizPart, lines: Sequence<String>): Int { | ||
return 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,46 @@ | ||
package de.linkel.aoc | ||
|
||
class Day05Test: AbstractDayTest<Int>() { | ||
class Day05Test: AbstractDayTest<Long>() { | ||
override val exampleA = """ | ||
seeds: 79 14 55 13 | ||
seed-to-soil map: | ||
50 98 2 | ||
52 50 48 | ||
soil-to-fertilizer map: | ||
0 15 37 | ||
37 52 2 | ||
39 0 15 | ||
fertilizer-to-water map: | ||
49 53 8 | ||
0 11 42 | ||
42 0 7 | ||
57 7 4 | ||
water-to-light map: | ||
88 18 7 | ||
18 25 70 | ||
light-to-temperature map: | ||
45 77 23 | ||
81 45 19 | ||
68 64 13 | ||
temperature-to-humidity map: | ||
0 69 1 | ||
1 0 69 | ||
humidity-to-location map: | ||
60 56 37 | ||
56 93 4 | ||
""".trimIndent() | ||
override val exampleSolutionA = 0 | ||
override val solutionA = 0 | ||
override val exampleSolutionA = 35L | ||
override val solutionA = 107430936L | ||
|
||
override val exampleSolutionB = 0 | ||
override val solutionB = 0 | ||
override val exampleSolutionB = 46L | ||
override val solutionB = 0L | ||
|
||
override val implementation = Day05() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package de.linkel.aoc | ||
|
||
class Day06Test: AbstractDayTest<Int>() { | ||
override val exampleA = """ | ||
""".trimIndent() | ||
override val exampleSolutionA = 0 | ||
override val solutionA = 0 | ||
|
||
override val exampleSolutionB = 0 | ||
override val solutionB = 0 | ||
|
||
override val implementation = Day06() | ||
} |