Adventofcode
Day 3
import scala.util.chaining._ def part1_2(data: InputType): Int = data .map(line => line .splitAt(line.length / 2) .tap(println) .pipe((l, r) => l.toSet.intersect(r.toSet).head)) .map(toInt) .sum
There was an error while loading. Please reload this page.