Skip to content

Instantly share code, notes, and snippets.

@windmaomao
Created September 26, 2020 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save windmaomao/386e2f6f44bcedc90fda649a3a921636 to your computer and use it in GitHub Desktop.
Save windmaomao/386e2f6f44bcedc90fda649a3a921636 to your computer and use it in GitHub Desktop.
// aoc2015-day3-part1.kt
fun part1(s: String) = s
.scan(0, nextPos)
.distinct()
.count()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment