Learn idiomatic Kotlin and practice your language skills by completing short fun, tasks from the Advent of Code 2020.*

What’s the best way to learn a language other than writing some code with it? Solving fun and short tasks like the ones from Advent of Code might be a great opportunity to practice your language skills, and you can learn a lot if you compare your solutions with how others have solved the same problem.

  • 0:00 Intro
  • 1:48 Solving the Day 1 task
  • 4:46 Solving the same task in a more efficient way
  • 9:19 Solution for three numbers
  • 14:43 ‘let’ magic
  • 16:39 Conclusion

GitHub project → https://github.com/Kotlin-hands-on/advent-of-code-2020
Blog post → https://blog.jetbrains.com/kotlin/2021/07/advent-of-code-in-idiomatic-kotlin/

If you find this format useful and want us to cover more tasks in a similar fashion, please share in the comments!

  • Used with the permission of Advent of Code (Eric Wastl)

#Kotlin #AOC #DAY1 #Idiomatic #Tutorial

#kotlin

Idiomatic Kotlin: Solving Advent of Code Puzzles, Day 1
3.15 GEEK