Update things
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package be.vandewalleh.aoc.days
|
||||
|
||||
import be.vandewalleh.aoc.utils.input.Day
|
||||
import be.vandewalleh.aoc.utils.input.Input
|
||||
import be.vandewalleh.aoc.utils.input.Text
|
||||
import org.eclipse.collections.impl.factory.primitive.CharBags
|
||||
|
||||
@Day(6)
|
||||
class Day06(@Text val input: Input<String>) {
|
||||
class Day06(@Text val input: String) {
|
||||
|
||||
private val groups = input.value.split("\n\n")
|
||||
private val groups = input.split("\n\n")
|
||||
|
||||
fun part1() = groups.sumBy { it.replace("\n", "").toCharArray().toSet().size }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user