Learn Kotlin with the Kotlin Team: Advent of Code 2020 #6
We continue to learn Kotlin with the Kotlin team.
Grouping and counting the characters in strings and collections is a very typical task given in coding interviews. Usually, the solutions for such tasks are quite simple. In this video, we learn about a few useful functions in Kotlin that make set operations really simple.
Day 6: Custom customs
Learn how to group and count characters in strings and collections using the standard library functions: 'map', 'reduce', 'sumOf', 'intersect', and 'union'.
0:00 Introduction
0:48 Task description
1:30 Reading the input
2:00 Naive solution
3:00 Use sumOf function
3:22 Part 2 of the challenge
4:00 Naive solution to the 2nd part
6:01 Using reduce function
6:30 Refactoring the solution
8:47 Common solution to both parts
9:30 Outro
Solution → https://github.com/kotlin-hands-on/advent-of-code-2020/blob/master/src/day06/day6.kt
Blog post → https://blog.jetbrains.com/kotlin/2021/09/idiomatic-kotlin-set-operations/
Puzzle description on Advent of Code → https://adventofcode.com/2020/day/6
Idiomatic Kotlin: Solving Advent of Code Puzzles Series https://youtube.com/playlist?list=PLlFc5cFwUnmwfLRLvIM7aV7s73eSTL005
* Used with the permission of Advent of Code (Eric Wastl)
#Kotlin #Idiomatic #Tutorial #AdventOfCode #AdventOfCode2020 #AdventOfСodeInKotlin #Day6
Видео Learn Kotlin with the Kotlin Team: Advent of Code 2020 #6 канала Kotlin by JetBrains
Grouping and counting the characters in strings and collections is a very typical task given in coding interviews. Usually, the solutions for such tasks are quite simple. In this video, we learn about a few useful functions in Kotlin that make set operations really simple.
Day 6: Custom customs
Learn how to group and count characters in strings and collections using the standard library functions: 'map', 'reduce', 'sumOf', 'intersect', and 'union'.
0:00 Introduction
0:48 Task description
1:30 Reading the input
2:00 Naive solution
3:00 Use sumOf function
3:22 Part 2 of the challenge
4:00 Naive solution to the 2nd part
6:01 Using reduce function
6:30 Refactoring the solution
8:47 Common solution to both parts
9:30 Outro
Solution → https://github.com/kotlin-hands-on/advent-of-code-2020/blob/master/src/day06/day6.kt
Blog post → https://blog.jetbrains.com/kotlin/2021/09/idiomatic-kotlin-set-operations/
Puzzle description on Advent of Code → https://adventofcode.com/2020/day/6
Idiomatic Kotlin: Solving Advent of Code Puzzles Series https://youtube.com/playlist?list=PLlFc5cFwUnmwfLRLvIM7aV7s73eSTL005
* Used with the permission of Advent of Code (Eric Wastl)
#Kotlin #Idiomatic #Tutorial #AdventOfCode #AdventOfCode2020 #AdventOfСodeInKotlin #Day6
Видео Learn Kotlin with the Kotlin Team: Advent of Code 2020 #6 канала Kotlin by JetBrains
Learn Kotlin leran kotlin Advent of Code 2020 Advent of Code learn kotlin for android learn kotlin for android development learn kotlin full course learn kotlin for beginners learn kotlin coroutines learn kotlin for java developers learn kotlin in 12 minutes learn kotlin programming language learn kotlin from java learn kotlin in 1 hour learn kotlin language learn kotlin in one video leran kotlin for android Kotlin tutorial Kotlin course Kotlin lesson
Комментарии отсутствуют
Информация о видео
20 сентября 2021 г. 20:18:28
00:10:14
Другие видео канала