-🎄- 2021 Day 4 Solutions -🎄-

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/adventofcode

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • GitHub repo aoc2021

    Advent of code 2021 in JS (by TheAngularGuy)

  • GitHub repo advent-of-code

    here is full source

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo Advent-of-code

    My solutions of adventofcode.com (by MichalMarsalek)

    I first did id in plain Nim but I wished I was doing it in Python's numpy. Than I remebered I heard about a similar project for Nim and so I'm learning arraymancer now:

  • GitHub repo AdventOfCode2021

    Python implementation on GitHub

  • GitHub repo advent-of-code-kotlin

    Advent of code 2021 - Kotlin

    Kotlin solution for Day 4, leverages OOO a lot.

  • GitHub repo advent-of-code

    My solution in rust. Performance as reported by the criterion benchmark:

  • GitHub repo aoc2021

    Advent of Code, 2021 (by LactoseGK)

    My repo can be found here, if you're curious =)

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo adventofcode

    Exploding and giving coordinates number to everything is actually the road I have chosen here. It's a bit more cumbersome at first, but the rest is very idiomatic sql (in my opinion). (my solutions are here if you're curious)

  • GitHub repo adventofcode

    So far my favorite sql solution is this one: https://gitlab.com/feike/adventofcode/-/blob/master/2021/day04/04-2.sql

  • GitHub repo adventofcode

    Solutions for problems from AdventOfCode.com (by bhosale-ajay)

    TypeScript Solution, under 50 lines, single function for both the parts.

  • GitHub repo aoc-21

    Advent of Code 2021

    My cpp solution: https://github.com/giorgosioak/aoc-21/tree/main/04

  • GitHub repo adventofcode2021

    Python p1 & p2, I was really happy with my approach initially but then I kinda screwed the pouch while using dictionaries. Overall it was kinda fun.

  • GitHub repo AdventOfCode

    My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA (by jonathanpaulson)

    Python. 30th on part 1; 15th on part 2. Video of me solving.

  • GitHub repo AdventOfCode

    python 372/225

  • GitHub repo aoc2021

    My solutions to Advent of Code 2021. (by ritobanrc)

    Rust -- Happy with how my code turned out for today. I used nalgebra's Matrix5 for storing the boards, which made checking for wins pretty easy.

  • GitHub repo aoc2021

    Advent of Code 2021 Solutions (by nlowe)

    Go, 1437 / 1664

  • GitHub repo advent-of-code

    Code for the Advent of Code event (by Sharparam)

    My Ruby solution

  • GitHub repo AdventOfCode2021

  • GitHub repo aoc

    My Advent of Code solutions (by vypxl)

    Python 3 724/655

  • GitHub repo AdventOfCode

  • GitHub repo advent2021

    Advent of Code 2021 (by moink)

    Python 3, with numpy.

  • GitHub repo advent-of-code-2021

    AOC in go (by alextanhongpin)

  • GitHub repo AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

    python3

  • GitHub repo Advent-of-Code-2021

    TypeScript and Lodash https://github.com/AlmogAdziashvili/Advent-of-Code-2021/blob/master/days/4/solve.ts

  • GitHub repo lodash

    A modern JavaScript utility library delivering modularity, performance, & extras.

    TypeScript and Lodash https://github.com/AlmogAdziashvili/Advent-of-Code-2021/blob/master/days/4/solve.ts

  • GitHub repo Advent-of-Code

    Advent of Code (by michaeljgallagher)

    Messy; misreading the directions caused me to scramble. I'll try to clean this up and maybe make it more efficient in the morning

  • GitHub repo advent-of-code-2021

    My solutions for Advent of Code 2021 tasks (by Jozkings)

    Python 3.7 (652/709)

  • GitHub repo ok

    An open-source interpreter for the K5 programming language. (by JohnEarnest)

    oK

  • GitHub repo AdventOfCode-Java

    adventOfCode(Language.JAVA);

  • GitHub repo AdventOfCode2021

    Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time. With competitive global leaderboard placements! :christmas_tree:

    Link to full solution

  • GitHub repo advent-of-code-2021

    Advent of Code 2021 Submissions (by mariotacke)

  • GitHub repo AdventOfCode2021

  • GitHub repo aoc_2021

    github

  • GitHub repo aoc2021

    Advent of code 2021 solutions, in varied languages (by A-UNDERSCORE-D)

  • GitHub repo advent-of-code-go

    (All 7 years of) adventofcode.com solutions in Go

    Solution in Go: https://github.com/alexchao26/advent-of-code-go/blob/main/2021/day04/main.go

  • GitHub repo advent-of-code-2021

    Advent of Code 2021 (by bennuttall)

    Python: https://github.com/bennuttall/advent-of-code-2021/blob/main/04/04.ipynb

  • GitHub repo advent-of-code-2021

    2021 advent of code (by Ocawesome101)

  • GitHub repo aoc2021

    GitHub

  • GitHub repo aoc2021

    https://github.com/jackdreilly/aoc2021/blob/main/d4b.py Immutable recursive approach, using cached_property and dataclasses for readability and sanity

  • GitHub repo advent-of-code-2021

  • GitHub repo aventofcode

    My solutions for Advent of Code

    Python 3 using numpy and sets https://github.com/moprak/aventofcode/blob/master/2021/4.py. Notes: 1) I really should internalize zip(*board) for the transpose, but numpy makes things easy enough.

  • GitHub repo AoC-2021

    C++ Part 1 and Part 2

  • GitHub repo advent-of-code

    Common Lisp.

  • GitHub repo advent-of-code-2021

    AoC this year exclusively with Ruby (by georgiee)

    georgiee/advent-of-code-2021/day-04 (GitHub)

  • GitHub repo AdventOfCode

  • GitHub repo advent-of-code

    A collection of small programming puzzles at Christmas (by aaronireland)

    Python solutions

  • GitHub repo advent-of-code

    Advent Of Code Solutions (by sreedevk)

  • GitHub repo aoc2021

    Advent of Code 2021 (by UnicycleBloke)

  • GitHub repo aoc2021

    Advent of Code 2021 on my homemade 16-bit CPU SCAMP (by jes)

  • GitHub repo AdventOfCode2021Kt

  • GitHub repo advent-of-code

  • GitHub repo Advent-of-code-2021

  • GitHub repo aoc2021

    Advent of code 2021 in Rust! (by lu-reit)

    My Rust (github) solution.

  • GitHub repo AdventOfCode

    My Advent of Code solutions throughout the years. Mainly C#. (by InKahootz)

  • GitHub repo aoc-2021

    Advent of Code 2021 (by serycjon)

    common lisp

  • GitHub repo adventofcode

    Advent of Code challenge solutions (by flwyd)

    Raku

  • GitHub repo aoc

    Advent of Code (AOC 2019-2021) in Rust! 🦀 (by hkennyv)

    Would love some feedback on my board implementation if anyone has the time. Or, specifically, my has_bingo method below. Is there a better way to check for bingo?

  • GitHub repo adventofcode

    Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020 and 2021 in Scala (by sim642)

    My Scala solution.

  • GitHub repo adventofcode

    :christmas_tree: Advent of Code (2015-2021) in C#

  • GitHub repo aoc2021-rust

    Advent of Code 2021 in Rust

  • GitHub repo adventofcode

    Advent of Code solutions (by jjclark1982)

    Python3 and NumPy, without modifying the boards in memory.

  • GitHub repo aoc-rust

    WIP solutions for Advent of Code puzzles, written in Rust.

    Helper functions parse_input(), and Board::numbers_to_win(), checksum() are in here to avoid creating a wall of text.

  • GitHub repo aoc

    Advent of Code solutions (by sjmulder)

    Nasty C# with Linq

  • GitHub repo AoC2021

    Advent of Code 2021. A Rusty submarine? (by wilkotom)

  • GitHub repo advent-of-code

    AOC solutions 🎄🍵 (by masmeert)

    Pretty happy with this one ``` def solve() -> List[int]: seen = [] won = [] scores = [] for n in NUMS: seen.append(n) for board in BOARDS: transpose = list(zip(*board)) for i, line in enumerate(board): if (all(num in seen for num in line) or all(num in seen for num in transpose[i])) and board not in won: won.append(board) scores.append(sum(sum(num for num in line if num not in seen) for line in board) * seen[-1]) return scores

  • A simple iterative approach in python :)

  • GitHub repo adventofcode2021

    Advent Of Code 2021 Solutions (by agardes)

    It's way messier than I hoped. Javascript solution

  • GitHub repo AdventOfCode2021

    Rust

  • GitHub repo AdventOfCode

  • GitHub repo adventofcode

    Advent of code (by Peter554)

    Python

  • GitHub repo adventofcode2021

    Advent of Code 2021 (by r0f1)

  • GitHub repo aoc2021

    Advent of Code 2021 (by jenarvaezg)

  • GitHub repo advent-of-code-2021

    advent of code 2021 solutions (by simorautiainen)

    PYTHON. I did first version without Numpy but decided that its way too useful so I did some refactoring and below is my solution. It's a bit slow so not the most optimal.

  • GitHub repo aoc2021

    Advent of Code 2021 (by foolnotion)

    C++ solution using Eigen: github

  • GitHub repo rockstar

    The Rockstar programming language specification

    I just looked up https://codewithrockstar.com/ and absolutely lost it at "Tommy used to work on the docs."

  • GitHub repo AOC.NET

    Advent of Code .NET Solutions repository

    Using Linq and AoCHelper. See full code here.

  • GitHub repo advent-of-code

    Solutions to Advent of Code challenges. (by 8483)

  • GitHub repo aoc2021

    Advent of Code 2021 solutions (by jameshoffmann)

    Part1: https://github.com/jameshoffmann/aoc2021/blob/main/day4/part1.js

  • GitHub repo adventofcode.com

    Practising Haskell with AdventOfCode.com puzzles (by sangster)

  • GitHub repo advent-of-code-2021

    link

  • GitHub repo adventofcode

    full source code with imports and type annotations

  • GitHub repo AdventOfCode2021

    Advent Of Code 2021 solutions in Pluto/Julia (by zabirauf)

  • GitHub repo AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • GitHub repo aoc2021

  • GitHub repo advent-of-clojure

    clo clo clo

    Clojure, using (almost) exclusively set logic. Looking at the other solutions, it could have probably been simplified, but I'm somehow compelled to use sets whenever I get the chance.

  • GitHub repo aoc2021

    Advent of Code 2021 - my answers

    Haskell 7093/6593

  • GitHub repo advent-of-code

    Haskell A bit verbose, but I think a quite readable and clean solution: https://github.com/Petrosz007/advent-of-code/blob/master/2021/day-4/day4hs/Day4.hs

  • GitHub repo aoc2021

    Advent of Code 2021 (by ednl)

    C, which takes some bookkeeping but it can be fast. I didn't push for every last drop of speed but still: about 3 ms on a Raspberry Pi 4 (1.8 GHz overclock, Buster desktop, not very quiet so I picked a good run). Code with lots of comments

  • GitHub repo Advent_of_Code_2021_Solutions_Java

    Personal AoC/2021 Solutions in Java

    https://github.com/justme789/Advent_of_Code_2021_Solutions_Java/

  • GitHub repo aoc2021

    Advent of Code 2021 (by sotolf2)

  • GitHub repo advent_of_code_2021

    My solutions for Advent of Code 2021 - https://adventofcode.com/2021 (by misfits42)

    Using Rust - my day 4 solution here

  • GitHub repo advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    A functional Scala solution using tail recursion. Most of the code is setting up case classes and parsing the input, the actual "business logic" is fairly concise, imo.

  • GitHub repo adventofcode2021

    Part 1: https://github.com/xBracey/adventofcode2021/blob/main/src/day4/index.ts Part 2: https://github.com/xBracey/adventofcode2021/blob/main/src/day4/part2.ts

  • GitHub repo advent-of-code-2021

    Part 1 (GitHub) Part 2 (GitHub)

  • GitHub repo adventOfCode2021

    Part 1: https://github.com/Charlesworth/adventOfCode2021/blob/main/typescript/day4/part1.ts Part 2: https://github.com/Charlesworth/adventOfCode2021/blob/main/typescript/day4/part2.ts

  • GitHub repo advent-of-code

    more puzzles - advent of code (by oli5679)

    I don't know what you think about using external libraries, but you can avoid lots of double for loops if you represent the board, and the matche,s as numpy arrays. Here is some of my code. https://github.com/oli5679/advent-of-code/blob/master/2021/04.ipynb

  • GitHub repo CSpydr

    A static typed low-level compiled programming language inspired by Rust and C

    (CSpydr is my own programming language written in pure C)

  • GitHub repo adventofcode

    Advent of Code https://adventofcode.com/ (by yulrizka)

  • GitHub repo advent-of-code-2021

  • GitHub repo advent-2021

    🎄 Advent of Code 2021: Solutions in Scala

    I made a stateless solution, with the board a List[List[Int]].

  • GitHub repo programming-challenges

    My attempts at solving various programming challenges. Leetcode, codewars, adventofcode, etc

    full solution

  • GitHub repo aoc2021

    Advent of Code, edition 2021, in Python (by qagren)

    My solution in Python, using a stateful approach that amounts to object-oriented programming.

  • GitHub repo advent-of-code

    Python solutions for Advent of Code programming puzzles. (by fedecalendino)

    🐍️ solution

  • GitHub repo AOC2021

    Advent of code solutions 2021 (by calebwilson706)

  • GitHub repo adventofcode

    Advent of code solutions (by mathsaey)

  • GitHub repo aoc2021

  • GitHub repo adventOfCode

    https://adventofcode.com/ (by plebcity)

  • GitHub repo AoC

    My Advent of Code solutions. (by hashworks)

    Rust, nothing fancy.

  • GitHub repo advent_of_code

    Advent of Code solutions (by domm)

  • GitHub repo advent-of-code-2021

    My solutions to the 2021 Advent of Code. (by joek13)

    GitHub

  • GitHub repo aoc2021

    Source Code

  • GitHub repo AdventOfCode2021

    Advent of Code 2021 (by SandstromHenrik)

    Github code

  • GitHub repo aoc-2021

    Advent of Code 2021 (by mintopia)

    Day 4 Code

  • GitHub repo Rust--Advent-of-Code

    Advent of Code 2021 in Rust

  • GitHub repo aoc2021

    Solutions for Advent of Code 2021 (by frerich)

    Elixir

  • GitHub repo aoc2021

    Scala 3

  • GitHub repo AOC-2021

    C# - Parts 1 & 2 The second part was surprisingly short, copy paste of P1 but just had to change an if statement in the final for loop.

  • GitHub repo advent-of-code

  • GitHub repo aoc

    Advent of Code tools and solutions (by rileythomp)

    Go

  • GitHub repo AdventOfCode2021

  • GitHub repo adventofcode2021

    Advent of Code 2021 (by thecircleisround)

    Python

  • GitHub repo AdventOfCode

    Advent of Code Solutions (by auxym)

  • GitHub repo 2021-advent-of-code

    Advent of Code 2021 puzzles

  • day four sollution

  • GitHub repo AdventOfCode2021

    My solutions to the Advent of Code 2021 puzzles. (by kemmel-dev)

    C# coming through here: https://github.com/kemmel-dev/AdventOfCode2021https://github.com/kemmel-dev/AdventOfCode2021/blob/master/day4/AoCDay4/AoCDay4/Program.cs

  • GitHub repo Advent_of_Code_2021

    My solutions to Advent of Code 2021 (by neelakantankk)

    Python

  • GitHub repo AdventOfCode2021

  • GitHub repo AoC2021

    Advent of Code 2021 (by gereons)

    Haven't seen any Swift solutions so far this year, so here's my attempt: https://github.com/gereons/AoC2021/blob/main/Sources/AdventOfCode/puzzle4.swift

  • GitHub repo adventofcode

    My Advent of Code (adventofcode.com) solutions (by Laudian)

  • GitHub repo aoc2021

    Advent of Code 2021 (by otsu81)

  • GitHub repo AOC2021

  • GitHub repo AOC-2021

    Here's a C++ solution.

  • GitHub repo Advent-of-Code

    Part 1: https://github.com/Sebbern/Advent-of-Code/blob/master/2021/day04/day04.py

  • GitHub repo adventofcode-2021

    Advent Of Code 2021 (by split)

    Part 1 and 2 in Haskell. About 30 lines of code

  • GitHub repo AdventOfCode

    http://adventofcode.com (by kkirsche)

  • GitHub repo advent-of-code-2021

    AoC 2021 solutions in Python (by kmb5)

    Python with OOP and lots of comments (both parts)

  • GitHub repo AdventOfCode2021

  • GitHub repo advent-of-code-2021

    My Kotlin solution for AoC 2021 (by henningBunk)

    Kotlin Solution / KoTest Tests

  • GitHub repo advent-2021

    Advent of Code 2021 solutions (by OmarAssadi)

    Main Code: Day4.java

  • GitHub repo AdventOfCode2021

    A collection for my Advent of Code (www.adventofcode.com) solutions using Nim, Julia, and Python programming languages (by genius487)

    [Nim](https://github.com/genius487/AdventOfCode2021/blob/main/day04/n21d04.nim), [Python](https://github.com/genius487/AdventOfCode2021/blob/main/day04/p21d04.py), [Julia](https://github.com/genius487/AdventOfCode2021/blob/main/day04/j21d04.jl)

  • GitHub repo AOC2021

    advent of code 2021 (by zalazalaza)

    python3 with numpy

  • GitHub repo adventofcode21

    2021 advent of code solutions

    Doing this for the first time, in Ruby (still learning the language, code likely reflects that)

  • GitHub repo AdventOfCode2021

    Part 1: https://github.com/SV-97/AdventOfCode2021/blob/main/Day_04_1/main.py

  • GitHub repo adventofcode-2021-solutions

    Solutions for Advent of Code 2021 edition

  • GitHub repo aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  • GitHub repo advent-of-code-2021

    My solutions to advent of code 2021 in deno/TS (by J-Swift)

  • GitHub repo adventofcode

    Some flavors of implementations for the Advent of Code challenges (by gansanay)

    Python 3

  • GitHub repo aoc

    Advent of Code 2021 in Solidity and JS (by ethsgo)

    Full code with the omitted parsing logic etc - https://github.com/ethsgo/aoc/blob/main/js/_04.js

  • GitHub repo advent2021

    advent woop woop (by gende0808)

    PHP

  • GitHub repo advent-of-code-2021

    🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2021

    Part 2 0.226ms

  • GitHub repo advent-of-code

    My solutions for Advent of Code® (by bsoyka)

    Did some nice Python OOP! Split into three files, part 1, part 2, and shared classes.

  • As a side note, I took inspiration from a post the other day about adding AoC badges to your repository README file. I use GitLab, which lets you define badges as properties of your repository. So I added badges to my repository's header area, driven by a JSON file in the repository. The JSON file is updated manually by a script. (I might add some automated updates at some point, but manual works okay for now.)

  • GitHub repo adventofcode

    Advent of code solutions (by julian-west)

    Python solution day 4 OOP (GitHub). Probably not the fewest lines of code but uses dataclasses and OOP to manage the states of each bingo card

  • GitHub repo adventofcode2021

    Advent of Code 2021 Challenge (by Maeevick)

  • GitHub repo advent-of-code

    coding challenges done as part of https://adventofcode.com/ (by Marijus)

  • GitHub repo adventofcode

    https://adventofcode.com/2021/ (by Torakushi)

  • GitHub repo advent-of-code-2021

    My solutions in Kotlin to the Advent of Code 2021 (by Tohnmeister)

    My solution in Kotlin, using only immutable data, functional constructs and tail recursion. I'm sure any functional programming and algorithm expert could do this with less lines of code, but I'm happy with the result: https://github.com/Tohnmeister/advent-of-code-2021/blob/main/src/main/kotlin/nl/tonni/adventofcode2021/Day4.kt

  • GitHub repo aoc2021

    Advent of Code 2021 (by Legolaszstudio)

  • GitHub repo AoC-2021

    Finally got around to do today's puzzle - F#: day04.fsx

  • GitHub repo adventofcode

    Solutions (by ezyyeah)

    also all of my solutions avaliable on my github adventofcode

  • GitHub repo AdventOfCode2021

    My Solutions for Advent of Code 2021 https://adventofcode.com/2021/ (by johnpmay)

    solution at github

  • GitHub repo advent_of_code_2021

    My solutions for each of the days of advent of code 2021 (by ddavis3739)

  • GitHub repo advent

    Git mirror of https://bitbucket.org/sjl/advent (by sjl)

    Common Lisp https://github.com/sjl/advent/blob/master/src/2021/days/day-04.lisp

  • GitHub repo AdventOfCode2021

    Solutions of AoC 2021 in APL (by MikosJon)

    Github

  • GitHub repo adventofcode

    Advent of Code! https://adventofcode.com/ (by dfontana)

    Rust

  • GitHub repo AdventOfCode

  • GitHub repo advent-of-code

    Solutions to Advent Of Code (by DearRude)

    Github

  • GitHub repo advent-of-code-2021

    Have fun with Clojure on Christmas 2021. (by hiepph)

    My Clojure solution. I also have a little write-up for solving the problem.

  • GitHub repo aoc-2021-clj

    Clojure, source and tests. Any feedback welcome!

  • GitHub repo Advent-of-Code-2021

    [GitHub Solution](https://github.com/daniel-meilak/Advent-of-Code-2021/blob/main/week_1/day_4/day_4.cpp)

  • GitHub repo AoC2021

  • GitHub repo aoc2021

    Advent of code 2021 (by simonbrahan)

    Python!

  • GitHub repo AdventOfCode2021

    My solutions to the AdventOfCode 2021 in R🎄 (by JohannesFriedrich)

  • GitHub repo aoc-2021

    My solves for Advent of Code 2021 (by Djuk1c)

  • GitHub repo AdventOfCode2021

    C# Part 1 and 2

  • GitHub repo advent-of-code-2021

    My solutions for Advent of Code 2021 (in C) (by KleberPF)

    Solution

  • GitHub repo AdventOfCode

    C++

  • GitHub repo advent-of-code

  • GitHub repo advent-of-code

    Javascript solutions to www.adventofcode.com (by DanFessler)

    Haven’t seen a lot of JavaScript in here, so here’s mine: https://github.com/DanFessler/advent-of-code/tree/master/2021/04

  • GitHub repo advent-2021

    Rust https://github.com/Crazytieguy/advent-2021/blob/master/src/bin/day4/main.rs

  • GitHub repo advent-of-code-2021

    https://github.com/adarsh0d/advent-of-code-2021/blob/master/day4/day4.js - feels suboptimal, but I got right answer

  • GitHub repo advent-of-code

    Advent of code solutions (by tallbikeguy)

  • GitHub repo Advent-of-Code-2021

    My bros got chocc calendars and I didn't (sad) so I have to eat code for krismas every day. (by dziobex)

    C++ Parts 1 & 2

  • GitHub repo adventofcode.sh

    Advent of Code 2020 and 2015, done in bash. Because why not?

    Day 1 was 10 LOC, each day is adding about 10 LOC, so now I'm at 40. I don't like where this is heading. https://github.com/einarjon/adventofcode.sh/blob/main/2021/04.sh Small mistake in Part 2 so it starts the bingo from the beginning, but the first numbers are crossed out. Doesn't affect the result.

  • GitHub repo aoc-2021

    GitHub link: https://github.com/brett-lempereur/aoc-2021/blob/main/day-4/solution.rkt

  • GitHub repo aoc

    Advent of Code - mscha's Perl 6 solutions (by mscha)

    I used a BingoDrawing grammar to parse the numbers and cards, and BingoCard and BingoGame classes to implement the Bingo game. Code is much too long to include in a comment, so see GitHub.

  • GitHub repo adventofcode

    Python OO I forgot to reset the boards for the second part, check it out yourself if you are having a problem. https://github.com/EnisBerk/adventofcode/blob/master/day4/main.py

  • GitHub repo advent-of-code

    Solutions for Advent of Code 2017 in javascript (ES6) (by Akallabet)

    Solution in Javascript, fully functional with a bit of recursion

  • GitHub repo advent2021

    Advent of Code 2021 in Rust (by jeremylt)

    Rust: Ouch, this one is slow https://github.com/jeremylt/advent2021/blob/main/src/day04.rs 552.623µs (Std Dev 32.275) locally, repl currently has some issue with an older version of Rust, so timings are WIP

  • GitHub repo advent-of-code

    Advent of code solutions (by rbusquet)

    fun problem, but my worst solution. for loops overload: https://github.com/rbusquet/advent-of-code/blob/main/2021/04/day4.py

  • GitHub repo aoc2021

    Advent of Code 2021, this time in Go (by danvk)

  • GitHub repo advent-of-code

    i've never finished one of these (by alchzh)

  • GitHub repo AdventOfCode

    Advent of Code Solutions over the years (by dmiller2606)

    Python 3.10 Solution A & B Open to any suggestions, still learning Python. Could probably change the two for loops in the actual solution into a list comprehension to generate a list of completions and their scores...

  • GitHub repo advent-of-code-2021

    Advent of Code 2021 (by MagicLemma)

    A fairly terse python solution (21 lines): https://github.com/MagicLemma/advent-of-code-2021/blob/main/day4.py

  • GitHub repo AdventOfCode2021

  • GitHub repo adventofcode

    Advent of Code solutions (by mrisoli)

    Here's my solution:https://github.com/mrisoli/adventofcode/blob/master/python/2021/d4.py

  • GitHub repo AdventOfCode2021

    Advent of code solutiosn (by McSick)

  • GitHub repo advent-of-code

    Advent of Code! (by peckb1)

    Day 04 Code

  • GitHub repo adventofcode2021

    Advent of Code 2021! (by rocksoftcode)

  • GitHub repo advent_of_code

    Python using numpy: https://github.com/Limeman/advent_of_code/blob/master/day_4/part_2.py

  • GitHub repo advent-of-code-2021-in-go

    Teaching myself go via Advent of Code 2021!

  • GitHub repo adventofcode-2021

    adventofcode.com 2021 solutions using Rust

    thanks - used your `nalgebra` tip for my solution :) https://github.com/dmitris/adventofcode-2021/blob/main/day04/src/main.rs

  • GitHub repo aoc_rust_2021

  • GitHub repo adventofcode

    Python 3.8 solution Choosing the right Data structure can be life saving.

  • GitHub repo Advent-of-code-2021-golang

    Advent of code 2021 Go solutions

  • GitHub repo AdventOfCode2021

    My solutions to https://adventofcode.com/2021 (by willkill07)

  • GitHub repo advent-of-code-2021

    Solution for both parts

  • GitHub repo AdventofCode

  • GitHub repo advent-of-code-2021

    Here’s my Ruby solution: https://github.com/poblouin/advent-of-code-2021/blob/main/04/solution.rb

  • GitHub repo aoc2021

    Java: https://github.com/jaredculp/aoc2021/commit/d9ba191cda3595a9b7206bb6b1a89a2e700f947c

  • GitHub repo AdventOfCode2021

    I enjoyed today’s. More fun with the Pointfree swift parsing and overture libraries. Trying to improve my functional programming chops a bit. https://github.com/lukeredpath/AdventOfCode2021/blob/main/Sources/AdventOfCode2021/04.swift

  • GitHub repo Advent_of_Code_2021

    Advent of code challenge, 202 (by FlorianG-dev)

    Here is the formated code. There are the puzzles input also, the true one and the example. If you find where I failed, I owe you one!

  • GitHub repo advent-of-code-2021

    Solutions for Advent of Code 2021 puzzles (by aweneer)

    C# GitHub

  • GitHub repo day4

  • GitHub repo adventofcode_2021

    My solutions for AoC21 in R and Julia

    R / Rstats: Code

  • GitHub repo AdventOfCode2021

    Python 3.8, classes approach: https://github.com/deshudiosh/AdventOfCode2021/blob/master/day04/day04.py

  • GitHub repo AdventOfCode2021

  • GitHub repo AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • GitHub repo advent-of-code-2021-python

    Code puzzles from https://adventofcode.com for Dec 2021

  • GitHub repo aoc2021

  • GitHub repo advent_of_code_2021

    Personal repor for avent of code 2021 - C++ (by thetomato2)

    C++

  • GitHub repo advent-of-code-2021

    Trying to solve https://adventofcode.com/2021 (by ThePituLegend)

  • GitHub repo advent_of_code

    Solutions to programming puzzles on Advent of Code (by Praful)

    This was one of those instances when the solution to part 1 could be mostly used for part 2. I just had to delay returning the result until the list of winners so far matched the number of boards. So I'll show part 2 only but both solutions are on GitHub.

  • GitHub repo Advent-of-Code-2021

    Advent of Code Solutions 2021 in Python (by DenverCoder1)

  • GitHub repo advent_of_code_2021

    Elixir

  • GitHub repo Advent-Of-Code

    Advent of code 2021 (by ffamilyfriendly)

    challenge 2 I'm sorry

  • GitHub repo advent-of-code-2021

    repo

  • GitHub repo aoc_ts

    🎄 Advent of code solutions written in TypeScript for Deno. [Moved to: https://github.com/N8Brooks/deno_aoc]

  • GitHub repo advent-of-code

    All my advent of code projects (by snowe2010)

    github

  • GitHub repo aoc2021

    Advent of Code 2021 (by krmaxwell)

    This one kicked my ass for a while, which was confusing because the tests all passed fine with example data. Eventually I tracked down the problem to the way I was reading in the actual puzzle input... I should've known. Anyway, in addition to the [Github repo](https://github.com/krmaxwell/aoc2021/master/day4] with full tests and stuff, here's the core answer:

  • GitHub repo aoc

    Python with no external libraries and C++ Python C++

  • GitHub repo advent_of_code_2021

  • GitHub repo advent-of-code

    Answers to 2020 Advent of Code (disclaimer this was done quickly rather than efficiently) (by jordangarrison)

    Go day 4: GitHub

  • GitHub repo aoc2021

    Go / Golang Tutorial Blog Post.

  • GitHub repo aoc2021-4_giant_squid

    My solution of the Advent of Code 2021, Day 4 puzzle: Giant Squid

  • GitHub repo advent-of-code-2021

    python p1 & p2: https://github.com/jabadia/advent-of-code-2021/tree/main/d04

  • GitHub repo aoc-typescript

  • GitHub repo AoC

    Advent of Code (by Marterich)

  • GitHub repo adventofcode

    Yearly advent coding challenge at https://adventofcode.com/ (by emilbratt)

    Completed with no external libs, no if statements and to much free time this weekend https://github.com/emilbratt/adventofcode/tree/main/2021/4

  • GitHub repo Advent-of-Code

    C# solutions for Advent of Code puzzles (by DjolenceTipic)

    not my proudest C# solution

  • GitHub repo advent-of-code

    I've been writing the parsing functions in a utility library for Advent of Code as I worked through all of the stars. The parser is here https://github.com/blake-watkins/advent-of-code/blob/main/parser.lisp

  • GitHub repo advent-of-code-2021

    Rust implementations for https://adventofcode.com/2021 (by pk-nb)

    Rust, Part 1 and 2

  • GitHub repo advent-of-code-2021

    My solutions to https://adventofcode.com/2021 (by plan-x64)

  • GitHub repo AdventCode

  • GitHub repo AdventOfCode

  • GitHub repo adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

    Here's the code for Part 1 and 2, along with my notes while I was coding.

  • Though I've been doing this year in F#, I decided to give parallelism in C# (my "native tongue", if you will) a go in day four, just to see if it made a significant difference.

  • GitHub repo AdventofCode

  • GitHub repo AoC-2021

    My advent of code solutions for 2021 (by ysbakker)

  • GitHub repo AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

    Part 1 was fairly nice, but I did need to write several functions to check if a board won.

  • GitHub repo advent-of-code

    solutions for Advent of Code (by micod-liron)

    BoardNumber BingoBoard Day04of2021

  • GitHub repo advent-of-code

    My Advent of Code adventures! (by LyleiLanar)

    I have two files: day_4.rb for the Game class. It has some methods and etc. for the game. Run this file for the result! board.rb for the Board class. It's for handling a board.

  • GitHub repo AdventOfCode2021

    AdventOfCode 2021 solutions (by Meldanor)

  • GitHub repo advent-of-code-2021

    Advent of Code - 2021 (by dkhundley)

  • GitHub repo aoc

    Advent of Code (by c-kk)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts