Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created December 12, 2021 20:50
Show Gist options
  • Save mchernyavskaya/0859e7aa93d56dc672c032da8a042ff2 to your computer and use it in GitHub Desktop.
Save mchernyavskaya/0859e7aa93d56dc672c032da8a042ff2 to your computer and use it in GitHub Desktop.
Fish Farm calling code - Advent of Code
fun part1(input: List<String>): Long {
return FishFarm(input[0]).plusDays(DAYS)
}
// test if implementation meets criteria from the description, like:
val testInput = readInput("day6/Example_test")
val part1 = part1(testInput)
check(part1 == 5934)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment