-❄️- 2023 Day 4 Solutions -❄️-

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • advent-of-code

    Let's go! (by tywhisky)

  • I think you meant to link to this Solution ;)

  • AdventOfCode

    Solutions to Advent of Code problems using Java 17 (and some Guava) (by chandlerklein)

  • For some reason I really struggled with part 2, originally going down the route of keeping a stack/queue. After a few hours I was too tired and used this solution for reference by u/LastMammoth2499, and now it makes sense:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • AdventOfCode2023

  • AoC2023

    Advent of Code 2023 (by gereons)

  • [Language: Swift] (code)

  • advent-of-code

    Discontinued My solutions for Advent of Code (2019-2022) (by dannyvankooten)

  • Advent_of_Code_2023

    My attempt for Advent of Code 2023. Will try in Python first, Rust if/when I have time. (by ray10k)

  • aoc23

    Advent of Code 2023 solutions written in Deno (by dmatis2)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • My solution: https://github.com/LinAGKar/advent-of-code-2023-rust/blob/master/day4/src/main.rs

  • Advent_Of_Code

    My solution for the Advent of Code challenges in various languages. (by Dullstar)

  • advent_of_code

    Advent of Code solutions (by Busata)

  • aoc-2023-in-kotlin

    Aoc 2023 in Kotlin!

  • advent-of-code

    Code for advent of code. In different languages n that. (by maxastyler)

  • github

  • advent-of-code

  • Both parts

  • Advent-of-Code-2023

  • [LANGUAGE: Python]

  • advent-of-code

    Discontinued Welcome to my solutions for Advent of Code (by 0xblazy)

  • GitHub

  • AdventOfCode

    Hacky solutions for [Advent of Code](https://adventofcode.com), working on past problems (by AllanTaylor314)

  • Code: main (5f0a9a8)

  • adventofcode

    Solutions to AoC puzzles (by alkurbatov)

  • AdventOfCode2023

  • For more days pointlessly made into one-liners check out my GitHub

  • advent-of-code-23

  • aoc2023

    Solutions, tests and framework for Advent of Code 2023 in Scala. (by sanraith)

  • Full code is available on my github: Day04.scala Used a map in P2 to memoize how many total cards you get from a given card.

  • aoc-excel-2023

    Advent of Code 2023 with only Excel

  • Github for all days

  • aoc23

  • aoc2023

    Advent of Code 2023 (Mojo)

  • advent-of-code

  • Code: https://github.com/akashdeepnandi/advent-of-code/blob/main/day4/index.js

  • advent2023

  • aoc

    contains my solutions for different advent-of-code years (by handsomefox)

  • [LANGUAGE: Go] Enjoyed this one GitHub

  • advent_of_code_2023

  • advent-of-code-2023

  • advent-of-code

    advent of code solutions (by messcheg)

  • advent-of-code

    Advent of Code 🎄 (by vinc)

  • adventofcode

    Advent of code solutions (by mathsaey)

  • [Language: Elixir] https://github.com/mathsaey/adventofcode/blob/master/lib/2023/4.ex

  • adventofcode2023

    my C/rust Solution to advent of code 2023 (by yufusuf)

  • advent-of-code

    my submission in C# to Advent of Code challenge https://adventofcode.com/ (by dr124)

  • [Language: C#] Today very clean one https://github.com/dr124/advent-of-code/blob/master/Advent._2023/Week1/Day4.cs

  • adventofcode2023

    my attempt at adventofcode 2023 (by crazymerlyn)

  • aoc-2023

    13 year old tries aoc (by kenan238)

  • [LANGUAGE: Python] https://github.com/kenan238/aoc-2023/blob/main/day4/main.py

  • adventofcode

    Advent of Code (by ednl)

  • C has no intersection operation, so I sorted the numbers and counted the matches "manually". Only kept an array for the number of card copies and could do the rest while reading the input. Runs in 3.2 ms on an old 2013 iMac, 3.9 ms on a Raspberry Pi 4 (cpu governor = performance). Short code, only one separate function for sorting: https://github.com/ednl/adventofcode/blob/main/2023/04.c

  • advent-of-code

  • Readable javascript solution. I will be pushing updating the repo with each days solutions, Love to hear the feedbacks. https://github.com/sanishchirayath1/advent-of-code/blob/master/2023/day4/index.js

  • playground

  • advent-of-code

  • aoc2023

    Solutions to Advent of Code 2023 (by thinnerthinker)

  • aoc2023

    my advent of code 2023 solutions (by SourishS17)

  • p1 https://github.com/SourishS17/aoc2023/blob/main/four-a.py

  • advent

    advent of code (by arroo)

  • day 4

  • aoc_2023

    My solutions to Advent of Code 2023 written in Ruby

  • Github

  • advent-of-code

  • [LANGUAGE: Golang] https://github.com/pemoreau/advent-of-code/blob/main/go/2023/04/day04.go

  • ADVENT2023

  • adventofcode23

    Solutions for https://adventofcode.com/2023 (by oriontvv)

  • [LANGUAGE: Rust] Pretty simple code

  • advent-of-code

    Solutions to the Advent of Code problem sets. (by ChrisTopping)

  • Github for both parts

  • advent-of-code

    Advent of code solutions (by nicolas-sabbatini)

  • Part A: Link

  • advent-of-code

    Advent of Code 2021-2022, JS/Rust/Python (by Joxter)

  • recursive (1ms) and non-recursve (36ms) solutions https://github.com/Joxter/advent-of-code/blob/master/2023/js/day04.js

  • advent-of-code-2023

    Common lisp solutions to Advent of Code 2023 (by bo-tato)

  • full code: https://github.com/bo-tato/advent-of-code-2023/blob/main/day4/day4.lisp

  • aoc2023

  • advent2023

  • Code

  • adventofcode2023

  • Source

  • aoc-2023

  • Solution on GitHub; video on YouTube.

  • advent-of-code-kotlin-solutions

    My solutions to AoC puzzles in Kotlin.

  • AocKt Y2023D04

  • AdventOfCode2023

  • Advent-of-Code-2023

  • AoC2023

    My solutions to Advent of Code 2023 https://adventofcode.com/2023 (by PetchyAL)

  • advent-of-code-2023

    Solution in Go (Golang) for Advent of Code 2023 (by silverark)

  • [LANGUAGE: Go] https://github.com/silverark/advent-of-code-2023/tree/master/day4

  • adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

  • Part 1

  • AdventofCode2023

    My advent of code code :) (by FinalFlashLight)

  • AdventOfCode2023

  • [LANGUAGE: Python] https://github.com/CakeDayZ/AdventOfCode2023/blob/main/day4.py

  • advent-of-code

    My solutions to https://adventofcode.com problems (by TomWagg)

  • Github

  • adventofcode2023

  • Code

  • AdventOfCode

    Multiple years of Advent of Code solutions. (by SwampThingTom)

  • Scratchcards.rs

  • advent-of-code

    Repository for my Advent of Code answers (by CalSimmon)

  • GitHub Link to Solution

  • GitLab

  • advent-of-code-2023

    Discontinued Doing every day of advent of code in a different programming language! (by JJWRoeloffs)

  • Challenging myself to do it in a different language every day, starting out with some more niche languages. Github

  • advent-of-code

  • adventofcode

  • advent-of-rust-2023

    Advent of Code 2023 solutions, Rust as always

  • Code

  • Advent-of-Code-2023

    Solutions for Advent of Code 2023 (by FCayouette)

  • cpp file on GitHub

  • aoc2023

    My Advent of Code 2023 solutions (by hugseverycat)

  • Here's my solution: https://github.com/hugseverycat/aoc2023/blob/master/day04.py

  • Advent-Of-Code-2023

    These are my solutions for Advent of Code 2023 (by teismar)

  • AdventOfCode2023

  • Full program on GitHub and blog post about the problem

  • AoC2023

    Standalones C solutions for AoC2023 (by Ily3s)

  • [LANGUAGE: C] C standalone

  • AdventOfCode2023

    SQL Solutions to Advent of Code 2023 (by VeritableHero)

  • Advent-of-code-2023

  • Github

  • advent_of_code

    Advent of Code attempts (by loopdreams)

  • adventofcode

    Solution implementations to https://adventofcode.com puzzles (by codertee)

  • Counter was useful here: github

  • advent

    Solutions to https://adventofcode.com/ (by tsenart)

  • No heap allocations: https://github.com/tsenart/advent/blob/master/2023/4

  • adventOfCode2023

    Advent of Code 2023 Solutions in Golang (by Static-Flow)

  • advent-of-code-2023

    My answers for the 2023 Advent of Code (by ZapDos7)

  • [LANGUAGE: Java] - solutions for parts 1 + 2 - github

  • advent-of-code

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

  • [LANGUAGE: SystemVerilog] This year, I'm trying to solve AoC using SystemVerilog + CoCoTB/Verilator. 3/4 days, going strong! Link to Github - Day 4

  • Pike

    Pike is a dynamic programming language with a syntax similar to Java and C. It is simple to learn, does not require long compilation passes and has powerful built-in data types allowing simple and really fast data manipulation. (by pikelang)

  • [LANGUAGE: Pike] (see https://pike.lysator.liu.se/)

  • advent-of-code-2023

    Advent of Code 2023 (Rust) (by bozdoz)

  • advent-of-code

    Resolutions of Advent of Code in Rust (by gil0mendes)

  • GitHub

  • aoc-2023

    C++17 solutions to the Advent of Code 2023 coding puzzles (https://adventofcode.com/2023). (by charlescochran)

  • github, 1148 microseconds (both parts together)

  • advent-2023

  • aoc-zig

  • Part 1 and Part 2

  • aoc-2023

    advent of code 2023 (by beakerandjake)

  • github

  • puzzles

  • recursion-schemes

    Generalized bananas, lenses and barbed wire

  • Reasonably proud of my part 2 solution, although would like to try using a recursion scheme rather than unstructured recursion:

  • Advent-Of-Code

  • Part1 and part2

  • advent-of-code-2023

    My journey through Advent of Code 2023 (by lucasteng123)

  • Github

  • Aoc2023

  • Slightly better spaced version here

  • AdventOfCode

    Solutions to Advent of Code (by loarabia)

  • python solution with some type hinting. Part 2 could be sped up with some cache of values instead of calculating sets over and over agin. GitHub

  • AdventOfCode

    Mis soluciones de los retos de advent of code (by DeybisMelendez)

  • Github

  • Advent-Calendar

  • Solution

  • Advent-of-Code

  • Part 1: https://github.com/TheBlackOne/Advent-of-Code/blob/master/2023/Day4_1.py

  • snippets

  • View formatted on GitLab

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • [Language: Jsonnet] (on GitHub)

  • jsonnet

    Jsonnet - The data templating language

  • [Language: Jsonnet] (on GitHub)

  • aoc2023

  • part1

  • AdventOfCode

    Advent of Code Solutions (by LeinadAsid)

  • Solution - Github

  • advent-of-code-2023

    My Advent of Code 2023 Solutions (Go, Python and Typescript) (by torbensky)

  • Python: https://github.com/torbensky/advent-of-code-2023/blob/main/day04/solution.py

  • aoc

    Advent of Code 2023 (by gigobyte)

  • Solved using types only: solution

  • aoc2023-swift

    Solutions for Advent Of Code 2023 in swift

  • code

  • AdventOfCode-2023

    Solving Advent of Code 2023 in Java (by SAMURAii-7)

  • Solution(Both Parts)

  • Advent-of-Code

  • [Pretty happy with the cleanliness of the code](https://github.com/Will-McBurney/AOC-2023/blob/master/src/main/kotlin/year23/day4/Main.kt), but it feels like the difficulty is all over the place right now.

  • Advent-Of-Code-2023

    AoC 2023 solutions in Haskell (by daysleeperx)

  • Github

  • adventofcode

  • on Github

  • advent-of-code-23

    Helping the elves in winter, one language at a time. (by EshaanAgg)

  • [Language: Rust] Source Code

  • advent-of-code-2023

    My solutions for Advent of Code 2023, written in C#. (by igorzavojchevski)

  • Day04 in C#.

  • AdventOfCode2023

    AdventOfCode2023 (by marcodelmastro)

  • advent-of-code

    :santa: :christmas_tree: :snowman: http://adventofcode.com/ solutions (by tlareg)

  • adventOfCode

  • Part 1: set intersection

  • advent-of-code-2023

    Haskell (and Swift) solutions to Advent of Code 2023

  • Here is a link to the source code on GitHub, both the normal one and the minified "punch-card" one.

  • aoc

    🎄Advent of Code in Godot using GDScript (by anthonyec)

  • Solution to Part 1 and 2

  • adventofcode

    Advent of Code solutions. (by ejrsilver)

  • advent-of-code

    Advent of Code (by MichaelBrunn3r)

  • AdventOfCode2023

    Advent of Code 2023 solutions (by johnpmay)

  • github link

  • adventofcode

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

  • [LANGUAGE: TypeScript] Github - Under 40 lines, all parts running under 8ms.

  • aoc

    Discontinued Advent of Code solutions written in Rust. (by skifli)

  • advent-of-code

  • Full code is on Github

  • AOC23-Day4-scratchcards

  • github

  • advent-of-code-2023

    Solutions to Advent of Code 2023 puzzles https://adventofcode.com/2023 (by Lysander6)

  • github

  • aoc-2023

    Discontinued My Advent of Code 2023 Solutions [Moved to: https://github.com/AJMansfield/aoc] (by AJMansfield)

  • advent-of-code-2023

    First time tackling the advent of code challenge. Lets go! (by qzhang1)

  • AoC2023

    Advent of Code 2023 solutions (by sputnick1124)

  • Much better commented version here

  • adventofcode2023

  • Solution in PHP for day 4: https://github.com/mariush-github/adventofcode2023/blob/main/04.php

  • AOC2023

    Advent of Code 2023 (by wlmb)

  • AoC2023-python

    My Python solutions for the Advent of Code 2023 event (https://adventofcode.com/2023)

  • GitHub (15/16 lines with a focus on readability)

  • advent-of-code

    Advent of Code Solutions 🎄 (by samyuh)

  • adventofcode

  • [Language: Go] solution (Both Parts)

  • advent

    Learning Go with Adventofcode (by Moopinger)

  • I ended up with a similar struct. Here are mine.

  • AdventOfCode

    My JS solutions for the famous Advent of Code challenges (by KhadidjaArezki)

  • AoC23

  • [LANGUAGE: Onyx] Day 4 Solution

  • AoC2023-PowerShell

  • Part 1: Pretty straightforward. Scan the lines, create 2 arrays. When a match is found, multiply the points by 2 (or add one on the initial draw). Part 2: Used an additional array to store the amount of copies of a card. When a number matches, increase the next card to be increased by the amount of cards of the type that's currently being checked.

  • advent-of-code

    My solutions to the Advent of Code puzzles (by hiimjustin000)

  • Advent-Of-Code-2023

    Solutions to AoC 2023 in Swift (by Jomy10)

  • source

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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