Advent of Code 2021 in Kotlin Multiplatform!

Overview

Advent of Code 2021 in Kotlin Multiplatform

Structure

Each day comes with two parts for you to solve. You'll find a ready-to go and test templates to start coding straight away here. All exercises live in ./src/commonTest/kotlin directory and come with prepopulated structure and test cases.

Solving

To start, pick a day (X) and part (Y), then open up its template - DayXPartY.kt. Implement the solution method and run it on JVM via ./gradlew cleanJvmTest jvmTest --tests "dev.petuska.aoc2021.DayXPartY"

You can also run same implementation on other platforms or ALL platforms via ./gradlew allTests.

Test outputs come with uniform formatting and some useful info. It's also quite nice to compare how the same implementation performs under different runtimes by their execution time printed in the output.

SUCCESS [Day2 #0] 0s 5ms 5912us
FAILURE [Day2 #1] Answer [****] is incorrect

Branching

The repository comes with two git branches

  • unsolved (default) - only the tasks with the test framework and hidden test inputs. No solutions or spoilers
  • solved - same code, but with solutions filled in for each task
You might also like...
Advent of code 2021, Kotlin

aoc-2021-kotlin Welcome to the Advent of Code1 Kotlin project created by almar using the Advent of Code Kotlin Template delivered by JetBrains. In thi

Advent of Code 2021 - Kotlin solution

aoc21-kt Welcome to the Advent of Code1 Kotlin project created by bubblefoil using the Advent of Code Kotlin Template delivered by JetBrains. In this

🎄 Solutions to Advent of Code 2021 in Kotlin 💜

Advent of Code 2021 in Kotlin These are my solutions to Advent of Code 2021 using the Kotlin language. Each day has its own subpackage. Try the proble

Solutions to advent of code 2021 in the gen-Z programming language known as kotlin

Advent Of Code 2021 - Kotlin Edition How to run? Get the kotlin SDK using the sdkman tool: https://sdkman.io/sdks#kotlin Run the commands: ./gradlew

Jetbrains advent of code 2021 in kotlin

jetbrains-advent-of-code-2021-in-kotlin Welcome to the Advent of Code1 Kotlin project created by matvs using the Advent of Code Kotlin Template delive

Advent of Code project 2021!

aoc-2021 Welcome to the Advent of Code1 Kotlin project created by goddabuzz using the Advent of Code Kotlin Template delivered by JetBrains. In this r

My solutions for the Advent of Code 2021. See the link for a playlist with recordings of me solving each puzzle.

Advent of Code 2021 My solutions for the Advent of Code 2021 solved with Kotlin. What is the Advent of Code? Advent of Code is an online event created

My Advent Of Code 2021 solutions 🎄🎅

AdventOfCode2021 In this repository, i am about to provide solutions for the Advent of Code1 puzzles using Kotlin language. Footnotes Advent of Code –

My advent of code 2021 solutions.

Advent of code 2021 These are my kotlin solutions for however long I manage to take part without giving up. How to run Add a Config.kt file locally an

Owner
Martynas Petuška
Lead Engineer / Fullstack Developer
Martynas Petuška
My solutions for Advent of Code 2021 puzzles, mainly using Kotlin.

Advent of Code 2021 Featuring Kotlin What's that ? https://adventofcode.com/2021/about Advent of Code is an Advent calendar of small programming puzzl

Petrole 0 Dec 2, 2021
My solutions for Advent of Code 2021, written in Kotlin!

Advent-of-Code-2021 Welcome to the Advent of Code1 Kotlin project created by thijsboehme using the Advent of Code Kotlin Template delivered by JetBrai

Thijs Boehme 0 Dec 15, 2021
Kotlin fun with Advent of Code 2021

aoc-kotlin Welcome to the Advent of Code1 Kotlin project created by dayanruben using the Advent of Code Kotlin Template delivered by JetBrains. In thi

Dayan Ruben Gonzalez 32 Dec 15, 2022
Advent of Code 2021 implementations in Kotlin

advent-of-code-in-kotlin-2021 Welcome to the Advent of Code1 Kotlin project created by acrane13 using the Advent of Code Kotlin Template delivered by

null 0 Dec 20, 2021
Advent of Code 2021: Solutions in Kotlin

Advent of Code 2021 Solutions in Kotlin This repo is my personal attempt at solving the Advent of Code 2021 set of problems with the Kotlin programmin

Todd Ginsberg 33 Nov 28, 2022
Advent of Code 2021, using Kotlin

Advent of Code 2021, using Kotlin See https://adventofcode.com/2021, https://kotlinlang.org/. See also "the official GitHub template" by JetBrains. Ge

Stefan Scheidt 3 Nov 18, 2022
🎅 Marry XMas 🎄 Kotlin solutions for my Advent of Code 2021 🤶

Advent of Code 2021 ?? val aMessageFromMe = """ _____________,--, | | | | | | |/ .-.\ HANG IN THERE |_|_|_|_|_|_/ / `. SAN

Nicola Corti 4 Dec 15, 2022
My 2021 Advent of Code Repo - Kotlin this year!

?? Advent of Code 2021 This year I'll be solving the advent problems using Kotlin! ?? If you're interested in trying out Kotlin for AoC this year or e

Mark Alvaro 5 Nov 30, 2022
Advent of Code 2021, in Kotlin

advent-of-code-kotlin-2021 Welcome to the Advent of Code1 Kotlin project created by mbifulco using the Advent of Code Kotlin Template delivered by Jet

Mike Bifulco 1 Dec 4, 2021
Advent of code 2021 (unofficial) in Kotlin for Educational Plugin on Jetbrains IntelliJ IDE.

Kotlin Advent of Code 2021 (unofficial) DISCLAIMER: I am not affiliated with the official Advent of code event or website. To open this course, you ne

null 1 Dec 10, 2021