Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lakiboy/advent-of-code-2022-kotlin
Advent of Code 2022 in Kotlin.
https://github.com/lakiboy/advent-of-code-2022-kotlin
aoc aoc-2022-in-kotlin aoc2022
Last synced: about 8 hours ago
JSON representation
Advent of Code 2022 in Kotlin.
- Host: GitHub
- URL: https://github.com/lakiboy/advent-of-code-2022-kotlin
- Owner: lakiboy
- License: apache-2.0
- Created: 2022-12-14T16:47:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T18:00:22.000Z (12 months ago)
- Last Synced: 2024-01-29T21:08:38.752Z (12 months ago)
- Topics: aoc, aoc-2022-in-kotlin, aoc2022
- Language: Kotlin
- Homepage:
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2022 in Kotlin
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/lakiboy/advent-of-code-2022-kotlin.svg?style=svg&circle-token=0104223da0789fd7cbd9f2a2d030f91c76845550)](https://dl.circleci.com/status-badge/redirect/gh/lakiboy/advent-of-code-2022-kotlin/tree/main)
My solutions for the [Advent of Code 2022](https://adventofcode.com/2022) puzzles in [Kotlin](https://kotlinlang.org).
The ultimate goal:
- to play around with Kotlin and improve [Standard library](https://kotlinlang.org/api/latest/jvm/stdlib/) knowledge;
- to revisit some algorithms and stay in shape;
- to evaluate [kotlinx.benchmark](https://github.com/Kotlin/kotlinx-benchmark);
- and most importantly to have fun.## Puzzles
| Day | Title | Task | Test input | Solution | Test |
|-----|--------------------------|----------------------------------------------|----------------------------------------------|--------------------------------------------------------|----------------------------------------------------------|
| 1 | Calorie Counting | [Docs](https://adventofcode.com/2022/day/1) | [Text](src/main/resources/day01_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day01.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day01Test.kt) |
| 2 | Rock Paper Scissors | [Docs](https://adventofcode.com/2022/day/2) | [Text](src/main/resources/day02_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day02.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day02Test.kt) |
| 3 | Rucksack Reorganization | [Docs](https://adventofcode.com/2022/day/3) | [Text](src/main/resources/day03_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day03.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day03Test.kt) |
| 4 | Camp Cleanup | [Docs](https://adventofcode.com/2022/day/4) | [Text](src/main/resources/day04_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day04.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day04Test.kt) |
| 5 | Supply Stacks | [Docs](https://adventofcode.com/2022/day/5) | [Text](src/main/resources/day05_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day05.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day05Test.kt) |
| 6 | Tuning Trouble | [Docs](https://adventofcode.com/2022/day/6) | - | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day06.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day06Test.kt) |
| 7 | No Space Left On Device | [Docs](https://adventofcode.com/2022/day/7) | [Text](src/main/resources/day07_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day07.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day07Test.kt) |
| 8 | Treetop Tree House | [Docs](https://adventofcode.com/2022/day/8) | [Text](src/main/resources/day08_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day08.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day08Test.kt) |
| 9 | Rope Bridge | [Docs](https://adventofcode.com/2022/day/9) | - | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day09.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day09Test.kt) |
| 10 | Cathode-Ray Tube | [Docs](https://adventofcode.com/2022/day/10) | [Text](src/main/resources/day10_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day10.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day10Test.kt) |
| 11 | Monkey in the Middle | [Docs](https://adventofcode.com/2022/day/11) | [Text](src/main/resources/day11_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day11.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day11Test.kt) |
| 12 | Hill Climbing Algorithm | [Docs](https://adventofcode.com/2022/day/12) | [Text](src/main/resources/day12_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day12.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day12Test.kt) |
| 13 | Distress Signal | [Docs](https://adventofcode.com/2022/day/13) | [Text](src/main/resources/day13_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day13.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day13Test.kt) |
| 14 | Regolith Reservoir | [Docs](https://adventofcode.com/2022/day/14) | [Text](src/main/resources/day14_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day14.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day14Test.kt) |
| 15 | Beacon Exclusion Zone | [Docs](https://adventofcode.com/2022/day/15) | [Text](src/main/resources/day15_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day15.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day15Test.kt) |
| 17 | Pyroclastic Flow | [Docs](https://adventofcode.com/2022/day/17) | - | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day17.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day17Test.kt) |
| 18 | Boiling Boulders | [Docs](https://adventofcode.com/2022/day/18) | [Text](src/main/resources/day18_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day18.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day18Test.kt) |
| 20 | Grove Positioning System | [Docs](https://adventofcode.com/2022/day/20) | [Text](src/main/resources/day20_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day20.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day20Test.kt) |
| 21 | Monkey Math | [Docs](https://adventofcode.com/2022/day/21) | [Text](src/main/resources/day21_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day21.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day21Test.kt) |
| 22 | Monkey Map | [Docs](https://adventofcode.com/2022/day/22) | [Text](src/main/resources/day22_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day22.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day22Test.kt) |
| 23 | Unstable Diffusion | [Docs](https://adventofcode.com/2022/day/23) | [Text](src/main/resources/day23_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day23.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day23Test.kt) |
| 24 | Blizzard Basin | [Docs](https://adventofcode.com/2022/day/24) | [Text](src/main/resources/day24_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day24.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day24Test.kt) |
| 25 | Full of Hot Air | [Docs](https://adventofcode.com/2022/day/25) | [Text](src/main/resources/day25_example.txt) | [Source](src/main/kotlin/io/dmitrijs/aoc2022/Day25.kt) | [Test](src/test/kotlin/io/dmitrijs/aoc2022/Day25Test.kt) |