My 2021 Advent of Code Repo - Kotlin this year!

Overview

πŸŽ„ 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 even next, check out this YouTube video from the Kotlin team. They provide helpful tips for Kotlin functions that help with several past AoC problems, instructions for their AoC giveaway, and a GitHub project template to help you get started!

πŸ—“οΈ Days

  1. ⭐ ⭐ (12/1/2021) Solution
  2. ⭐ ⭐ (12/2/2021) Solution
  3. ⭐ ⭐ (12/3/2021) Solution
  4. -
  5. -

...

❀️ Community Inspired

After I finish my initial stab at a puzzle, I like to look at other #aoc-2021-in-kotlin repos for inspiration. Lots of times I see solutions that make me think: "Wow! That's cool!" This year I'll be keeping track of my Favorite Solutions from the community (with minor changes to meet this project's style).

πŸ€“ Favorite Kotlin Features

1. windowed(2)

A function that can be used on Iterables and Sequences to look at rolling windows of values. For example listOf(1, 2, 3, 4, 5).windowed(2), would give us [[1, 2], [2, 3], [3, 4], [4, 5]]. You can specify custom window sizes (e.g. window size of 3 to get sub-lists of size 3), and you can specify that you're willing to accept partial windows once you get to the end of the iterable or sequence.

2. count { filter expression }

Pass in a filter expression as an argument to count { ... }, saving the extra line needed by a filter { ... } when a COUNT WHERE is needed.

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
Mark Alvaro
Mark Alvaro
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
Advent of Code 2021 in Kotlin Multiplatform!

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

Martynas PetuΕ‘ka 2 Dec 6, 2021
πŸŽ… 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
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