holgerbrandl
12/02/2017, 4:33 PMflatMap
to cut down code. And it would also fail (same as mine, but not in @karelpeeters solution) if there would be number duplicates in a row.andyb
12/02/2017, 4:35 PMstkent
12/02/2017, 5:12 PMval input = File(Main::class.java.getResource("input.txt").file).readLines()
if that helpskarelpeeters
12/02/2017, 5:12 PMval input = """ ... """
.andyb
12/02/2017, 8:43 PMholgerbrandl
12/02/2017, 9:10 PMandyb
12/02/2017, 10:17 PMkarelpeeters
12/02/2017, 10:17 PMandyb
12/02/2017, 10:23 PMkarelpeeters
12/02/2017, 10:34 PM