# Advent of Kotlin Solutions

DevFeed: [Advent of Kotlin Solutions](<https://devfeed.tech/articles/advent-of-kotlin-solutions-39189.md>)

Original publisher: [Read original article](<https://kt.academy/article/advent-2021-solutions>)

Published: 2022-01-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [clustering](<https://devfeed.tech/topics/clustering.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [clustering](<https://devfeed.tech/tags/clustering.md>), [json](<https://devfeed.tech/tags/json.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [recursion](<https://devfeed.tech/tags/recursion.md>), [sealed-class](<https://devfeed.tech/tags/sealed-class.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This article presents Kotlin solutions for Advent of Kotlin 2021 exercises, including JSON stringification, generating well-formed parentheses, tree algorithms, and k-means clustering. It discusses recursion, sealed classes, smart casting, and Kotlin functions used in the solutions.

## Source excerpt

Solutions to the Advent of Kotlin!