Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Photo by Elena Mozhvilo on Unsplash Photo by Markus Spiske on Unsplash

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Slide 13

Slide 13 text

● ●

Slide 14

Slide 14 text

● ● ●

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

2020 Unofficial Advent of Code Survey - Jeroen Heijmans

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Daniel Lin (@ephemient) Solved every daily puzzle in four different languages. ephemient.github.io/aoc2020/

Slide 19

Slide 19 text

Joris Portegies Zwart (@jorispz) Solves puzzles using Kotlin Multiplatform. github.com/jorispz/aoc-2020

Slide 20

Slide 20 text

Jakub Gwóźdź Solved every puzzle and provided a visualization. In Kotlin! jakubgwozdz.github.io/advent-of- code-2020/

Slide 21

Slide 21 text

Courtesy of @FuriousProgramm @FuriousProgramm Also attempting to solve this puzzle. Manually.

Slide 22

Slide 22 text

Since 2017, I have solved each puzzle each day, in Kotlin and blogged about it. https://todd.ginsberg.com

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Slide 25

Slide 25 text

val letters = listOf("A", "B", "C", "D") val numbers = listOf(1, 2, 3, 4)

Slide 26

Slide 26 text

val letters = listOf("A", "B", "C", "D") val numbers = listOf(1, 2, 3, 4) letters.zip(numbers) // [(A, 1), (B, 2), (C, 3), (D, 4)] // List>

Slide 27

Slide 27 text

val letters = listOf("A", "B", "C", "D")

Slide 28

Slide 28 text

val letters = listOf("A", "B", "C", "D") letters.zipWithNext() // [(A, B), (B, C), (C, D)] // List>

Slide 29

Slide 29 text

val letters = listOf("A", "B", "C", "D")

Slide 30

Slide 30 text

val letters = listOf("A", "B", "C", "D") letters.chunked(2) // [[A, B], [C, D]] // List>

Slide 31

Slide 31 text

val letters = listOf("A", "B", "C", "D", "E", "F")

Slide 32

Slide 32 text

val letters = listOf("A", "B", "C", "D", "E", "F") letters.windowed(3) // [[A, B, C], [B, C, D], [C, D, E], [D, E, F]] // List>

Slide 33

Slide 33 text

val letters = listOf("A", "B", "C", "D", "E", "F") letters.windowed(3, 3) // [[A, B, C], [D, E, F]]

Slide 34

Slide 34 text

val letters = listOf("A", "B", "C", "D", "E", "F") letters.windowed(4, 4, false) // [[A, B, C, D]]

Slide 35

Slide 35 text

val theString = "Hello" theString.padEnd(7, '!') // Hello!!

Slide 36

Slide 36 text

val theString = "Hello" theString.padStart(7, '!') // !!Hello

Slide 37

Slide 37 text

val theString = "Left Right"

Slide 38

Slide 38 text

val theString = "Left Right" theString.substringBefore(" ") // "Left"

Slide 39

Slide 39 text

val theString = "Left Right" theString.substringBefore(" ") // "Left" theString.substringAfter(" ") // "Right"

Slide 40

Slide 40 text

val someList = listOf("A", "B", "C")

Slide 41

Slide 41 text

val someList = listOf("A", "B", "C") someList.any { it.length == 1 } // True!

Slide 42

Slide 42 text

val someList = listOf("A", "B", "C") someList.all { it.length == 1 } // True!

Slide 43

Slide 43 text

val someList = listOf("A", "B", "C") someList.none { it.length == 2 } // True!

Slide 44

Slide 44 text

"3".toInt() // 3

Slide 45

Slide 45 text

"3".toInt() // 3 '3'.toInt() // 51

Slide 46

Slide 46 text

fun Char.asInt(): Int = this.toString().toInt()

Slide 47

Slide 47 text

fun Char.asInt(): Int = this.toString().toInt() '3'.asInt() // 3

Slide 48

Slide 48 text

● ●

Slide 49

Slide 49 text

● ● ●

Slide 50

Slide 50 text

● ● ● ●

Slide 51

Slide 51 text

● ● ● ● ●

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content