Created
September 26, 2020 14:10
-
-
Save windmaomao/e025beb4a00e0a6c2d94ced41dd9b19c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// aoc2015-day3-part2.kt | |
fun part2(s: String) = evenOddGroups(s) | |
.flatMap { it.scan(0, nextPos) } | |
.distinct() | |
.count() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment