-🎄- 2022 Day 7 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
  • AoC

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

  • advent-of-code-wim

    Wim's solutions for https://adventofcode.com/ puzzles

  • Mine is similar but I keep a stack of abspaths (q07.py). I don't quite understand how you are able to get away without doing that in the accumulate - are you implicitly assuming subdirectory basenames are unique?

  • 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
  • aoc2022

    Solutions of Advent Of Code 2022 (by drupol)

  • Here's my version in PHP. I used a Tree representation for building the filesystem structure.

  • advent-2022

    https://adventofcode.com/2022 (by tudorpavel)

  • adventofcode

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

  • F# - Was able to get the answer by only parsing 'cd' and 'file' lines. A single fold and then sum/min from aggregated data.

  • aoc-2022-clojure

    My attempt to solve the Advent of Code 2022 using Clojure.

  • First (slower) version using zippers. I absolutely had to use them because I just learned about clojure.zip recently and this puzzle seemed to be a perfect victim for me having fun creating a huge tree structure.

  • aoc2022

  • Here it is if you'd like to see: https://github.com/hugseverycat/aoc2022/blob/main/day7attempt2.py

  • 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
  • advent_of_code_22

  • Yeah, I spend a lifetime (I'm tired sorry) wrestling with the borrow checker until I stumbled upon Rc and RefCell, I'm new so I did not know about it, and after a few rewriting I finally managed to get a real tree with ref inside. I probably would have finished 3 hours sooner if I tried the Hashmap approach, but I wanted that damn tree (code)

  • advent-of-code-2022

    actually publishing my solutions now that they're not redundant...

  • AdventOfCode

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

  • Python3, 9/4! Video. Code. I'm happy to make the top 10!

  • QDirStat

    QDirStat - Qt-based directory statistics (KDirStat without any KDE - from the original KDirStat author)

  • It's used by several disk usage utilities like https://github.com/shundhammer/qdirstat

  • AdventOfCode2022

    Advent of Code 2022 (by bog500)

  • advent_of_code

    Advent of Code (by zv0n)

  • aoc2022

    Advent of Code 2022 Solutions in Go (by nlowe)

  • Go/Golang | 1417/2403

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • advent-of-code

    My Advent of Code submissions. For 2021 and before, these are the original code I used, without any modifications after-the-fact. As such, they are probably not as efficient or short as they should be, because I want a working solution faster, not a better solution. For 2022 and after, these are the solutions uploaded to my YouTube channel.

  • Part 1

  • AdventOfCode

  • adventofcode

    ES6 solutions to Advent of Code puzzles. (by surgi1)

  • AdventOfCode

    My Solutions for Advent of Code (by werhsdnas)

  • Code

  • adventofcode

    Solutions to the yearly Advent of Code challenges in Java. (by joshuaruegge)

  • Code

  • AdventOfCode2022

    C# Solutions for AOC 2022 (by AlphaNecron)

  • C# .NET GitHub

  • advent-of-code-2022

  • Code

  • AdventOfCode2022

  • Here is the GitHub page if you wanna look closer. Definitely open to improvements.

  • advent-of-code

    My solutions for https://adventofcode.com (by dylemma)

  • My solution in Scala

  • aoc2022

    Advent of Code 2022 on SCAMP (by jes)

  • advent-of-code-2022

    2022's Advent Of Code (by ollien)

  • advent-of-code

    Advent of Code! (by peckb1)

  • Kotlin Day 06 I went the tree route, and build up a directory structure as I went along

  • advent_of_code

  • object oriented crystal: https://github.com/robacarp/advent_of_code/blob/master/2022/7/solution.cr

  • AoC-2022

    Advent of Code 2022 (by Acellama88)

  • Code Here

  • advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  • adventofcode

    Advent of Code solutions (by jzhang113)

  • Ruby 4028/3734

  • advent-of-code

    My solutions to advent of code problems (by jtrinklein)

  • python 3.11

  • advent-of-code-scala

    Complete 2022 to 2015 entries for the annual Advent of Code challenge, written in concise idiomatic functional Scala.

  • Scala (2973 / 2888)

  • adventofcode

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

  • My Scala solution.

  • AdventOfCode-PS

    Advent of Code solutions in (mostly) PowerShell

  • PowerShell 7

  • AdventOfCode

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

  • Python [1810/1396] (with and without recursive structures), then Google Sheets. The flat data structure was useful for working with the sheet (I don't think spreadsheets are designed for recursion)

  • aoc2022

    Advent of Code 2022 (by FileGo)

  • adventofcode22

    my rust solutions for advent of code 2022 (by CabbageAdi)

  • [Rust](https://github.com/iDoEverything/adventofcode22)

  • aoc_n64

    advent of code 2022 for n64

  • advent-of-code-y2022

    Advent of Code year 2022

  • My Haskell solution https://github.com/clatisus/advent-of-code-y2022/blob/master/src/Day7.hs

  • adventofcode

    Advent Of Code 2018 - 2021 (by nsmaciej)

  • Clojure - Code

  • adventofcode

    :christmas_tree: Advent of Code (2015-2023) in C# (by encse)

  • aoc

    Advent of Code (by camwebb)

  • I remember the first time I needed to close(cmd) too - I was so frustrated until I worked it out (much longer than 40 mins!). Here's my solutions: 1 and 2. The gotcha for me today was that I had been using the name of the directories as array indices, without checking to see if the directory names were reused... which they were.

  • AdventOfCode2022

  • advent-of-code-2022

  • My solutions in python and rust. The python version is my original and the rust version is after checking what some other people were doing. For some ungodly reason rust-analyzer thinks the scan_fmt! macro is invalid because I'm asking it for a String, but the rust compiler compiles it without issue. If anyone has a clue what's going on here I'd love to know.

  • aoc2022

    Advent of Code 2022 - my answers

  • aoc2022

    Advent of code 2022 (by MarcusDunn)

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • Elixir — code, reflections

  • aoc

    Advent of Code (by ramuuns)

  • AOC

    Solutions for Advent of Code, written in multiple languages, 2015/2020 done in C++, 2021 done in Rust (by Blakeinstein)

  • AOC

    Advent of code solution (by definev)

  • My dart solution is here: https://github.com/definev/AOC/blob/main/dart/day07.dart

  • AdventOfCode2022

  • advent-of-code

    Advent of Code with JS (by emrergin)

  • advent-of-code-2O22

    THE YEAR THAT I LEARNED GRAPH 🍇 [Still on: Day 16 & 19]

  • GitHub

  • aoc_2022

    Discontinued Bad 2022 Advent of Code solutions (by ClementTsang)

  • Finally got around to doing it in a language I've never used before for the day. Today's language of choice is Jakt, solution here.

  • hatchery

    Various incubating projects that i lay on to keep warm (by quat1024)

  • rust, not good

  • aoc

    advent of code (js / deno ts ) (by jackysee)

  • Typescript

  • aoc-2022-kotlin

    AOC 2022 in Kotlin!

  • adventofcode

    adventofcode.com solutions (by linl33)

  • adventofcode

    Advent of code solutions (by mathsaey)

  • aoc2022lisp

  • AOC2022

  • Python https://github.com/Pokemaster69/AOC2022/blob/main/day7.py

  • advent-of-code-2022

    My advent of code solutions https://adventofcode.com/2022 (by FlakM)

  • part 1 & part 2

  • Advent-of-Code

    Advent of Code Solutions (by VictorOnink)

  • Here is my python solution: https://github.com/VictorOnink/Advent-of-Code-2022/blob/master/Day_7_No_Space_Left_On_Device/day_7_file.py

  • aoc-2022

    Advent of Code 2022 (by mintopia)

  • Day 7

  • Advent-of-Code-2022

    Advent of Code 2022 in Rust (by cgubbin)

  • Rust (repo). Nice to brush up on tree structures again. No idea if it was the fastest method but the code is easy to follow at least.

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

  • Part 1 took a significant amount of time, since I had to develop the input parser; I assumed that the input was a pre-order traversal through the filesystem. I defined a struct to represent a tree node, and wrote the constructor for both struct variants. My parser looked at the input stream, and expected to see $ ls (as an internal correctness check). After it saw that, it looked ahead and counted the number of entries in this directory (.countEntryLoop). I then allocated space to hold those entries. Next, I parsed each entry (.parseEntryLoop). Finally, for each directory I saw, I skipped the cd to that directory and then recursed. Finally, I calculated the size of this directory as the sum of the sizes of its entries. I then skipped the cd .. at the end of the current directory entry (if there was any; I would have skipped past the end of the file for /, but I don't look after that anyways). Then, I had to do a standard structurally recursive traversal through the tree, summing those directory nodes whose size was more than 10,000. It's more difficult to write recursive functions in assembly, since you've got to be very careful to set up your arguments and prevent clobbering of registers you currently have in use.

  • aoc-2022-rust

    Solutions for Advent of Code 2022

  • aoc2022

    My submissions to Advent of Code 2022. Learning Julia for the first time. (by hraftery)

  • Julia. Finally too many new things to learn at once in Julia to avoid getting ugly.

  • aoc2022

  • no_std Rust targetting 8-bit MOS6502: https://github.com/mrk-its/aoc2022/blob/main/day07/src/main.rs Computed in 11275620 cpu cycles

  • aoc2022

    Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language) (by GoldsteinE)

  • adventofcode-2022

    Advent of Code 2022 solutions (by def-)

  • Advent-of-Code

    A collection of my solutions for "Advent of Code" (by Nuhser)

  • advent-of-code-2022

    The solutions that I came up with for the Advent of Code 2022 in Ruby (by coding-bunny)

  • solution (GitHub): https://github.com/coding-bunny/advent-of-code-2022/blob/main/day_7.rb

  • advent-of-code-2022-Python

  • AdventOfCode2022.jl

    Advent of Code 2022: Written in Julia (by rkstgr)

  • Julia (GitHub)

  • AdventOfCode

    Advent of Code repo & framework (by EricEzaM)

  • First attempt

  • advent_c

    All of the advents of code in pure C, without libraries

  • C, some annoying input parsing and then very straightforward tree walking. Was expecting something a lot harder in part 2, so originally over-engineered, and ended up ripping a bunch of stuff out when part 2 was just another walk of directory sizes. ¯_(ツ)_/¯ [Github]

  • AdventOfCode

  • Github

  • advent-of-code-2022

  • Github

  • adventOfCode2022

    Discontinued Javascript Solutions for Advent Of Code 2022 (by agardes)

  • Ugly as hell but ended up working. Will improve later on. Javascript solution

  • adventofcode2022

    Advent of Code 2022 - solutions in human readable PHP code (by mariush-github)

  • Here's my PHP solution : https://github.com/mariush-github/adventofcode2022/blob/main/07.php

  • advent-of-code-2022

    back to rust, except i'll use libs where it makes sense (by jchevertonwynne)

  • advent-of-code-2022

    Advent of Code solutions. (by tobyaw)

  • AoC2022

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

  • Advent-of-Code

    My Advent of Code solutions since 2018 collected in one place (by alex-Symbroson)

  • aoc-go

    A Golang tool for generating code for Advent of Code

  • boline

    A low level preprocessor meta programming library.

  • C preprocessor: https://github.com/camel-cdr/boline/blob/main/aoc22/aoc7.c

  • AoC2022

  • I would need some help, since no matter what I do, it seems like i get wrong anwser? Is there some "joke" or trick that I should account for, that the example doesn't contain? github

  • adventofcode

    This repo contains (almost) all of my solutions for adventofcode problems. (by kiriDevs)

  • aocd

    Python solution for Advent of Code 2022

  • Python 3.8 solution

  • aoc2022

  • Calculate part 1 in one pass and do a second only over the sizes for part 2 (because we know the size of / only at the very end). Hot runs take ~13 µs on a Core i9-12900K, including I/O. Code is here.

  • advent-of-code

    http://adventofcode.com (by prositen)

  • Python @ github

  • advent-of-code-2022

    Practicing Rust for the second year in a row (by nj-vs-vh)

  • Rust

  • advent-of-code-2022

  • Solution

  • advent-of-code-2022

    Code for Advent of Code 2022 event, written in PHP. (by s-patompong)

  • aoc

    advent of code (by erik-adelbert)

  • Here's is a GitHub link to my solution for today challenge.

  • adventofcode

    Advent of Code 2021 (by thecircleisround)

  • Solution

  • advent-of-code

    My solutions of adventofcode.com, with TypeScript (by mastondzn)

  • TypeScript, this one was pretty fun

  • you can find whole code here, I will show you the most interesting bit with traversing the instruction list with current path stored in pth column. parsed as ( select 'root' as t, '/' as nm, null as bytes, json_array('/') as pth, 1 as step union all select preparsed.t, case when preparsed.t = 'dir' or preparsed.t = 'file' then json_insert(pth, '$[#]', preparsed.nm) else preparsed.nm end as nm, preparsed.bytes, case when preparsed.t = 'cd' then json_insert(pth, '$[#]', preparsed.nm) when preparsed.t = 'dc' then json_remove(pth, '$[#-1]') else pth end as pth, step + 1 as step from parsed inner join preparsed on n = step ), only_dirs as ( select json_remove(nm, '$[#-1]') as nm, sum(bytes) as bytes from parsed where t = 'file' group by json_remove(nm, '$[#-1]') ), all_dirs_counted as ( select json_each.value as dirnm, sum(bytes) as bytes from only_dirs, json_each(only_dirs.nm) group by json_extract(nm, printf('$[%s]', iif(json_each.key > 0,json_each.key - 1, 0))) || json_each.value order by nm )

  • advent2022

    My solutions for advent of code 2022 (by RuedigerLudwig)

  • Python 3.11

  • aoc2022-25-in-25

    Advent of Code in 25 languages

  • Javascript

  • advent-of-code

  • Also had to copy the maths for part 2 off someone as my brain melted before I could finish. Here's the whole thing so far and I did in JavaScript..

  • advent-of-code-2022

    My solutions for the Advent of Code for 2022. https://adventofcode.com (by tanuki-billie)

  • aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  • aoc-2022

    My advent of code 2022 solutions (by Sreyas-Sreelal)

  • my solution for day7 in rust https://github.com/Sreyas-Sreelal/aoc-2022/blob/master/day7/src/main.rs I think I can write a better solution

  • adventofcode

  • Typescript: github

  • aoc2022

  • aoc_2022

  • advent-of-code

  • aoc2022

    Discontinued Advent of Code 2022 (by ednl)

  • I went with a tree and recursive function, and no assumptions about the maximum number of dirs/files/levels. So that took me a while, haha. Runs in 1.5 ms on a Raspberry Pi 4. https://github.com/ednl/aoc2022/blob/main/07.c Possible further optimisation: store dir sizes in the struct for re-use in part 2. But meh, I spent enough time!

  • aoc2022

    Advent of Code, this time in Deno (by danvk)

  • advent-of-code-2022

  • Python - Day 7

  • advent-of-code

  • Day 7, Part 1

  • advent-of-code

  • Java 8 Solution

  • AdventOfCode

    My solutions to Advent of Code. (by AshishMahto)

  • I haven't yet seen a tree parser that uses a recursive parser instead of a parent pointer, so I thought I'd throw my solution into the mix: Scala

  • AoC_2022

    Advent of Code 2023 -- in C++ using range-v3 ranges (by jwezorek)

  • github link

  • advent-of-code

    solutions for Advent of Code (by micod-liron)

  • I'm building a tree structure of custom [file](https://github.com/micod-liron/advent-of-code/blob/main/AdventOfCode2022/AOCFile.class.st) and [directory](https://github.com/micod-liron/advent-of-code/blob/main/AdventOfCode2022/AOCDir.class.st) types and then folding over it. Smalltalk's dynamic nature and duck typing were really handy.

  • C++ Implementation (written by a Python guy): https://github.com/Mereep/advent_of_code_2022_cpp

  • adventofcode

    advent of code repo (by afcasco)

  • Full code: https://github.com/afcasco/AdventOfCode/tree/main/src/main/java/com/adventofcode/y2022/day07

  • adventofcode

    Advent of Code 🎄 (by markus-k)

  • advent-of-code

    Advent of Code 2021 (by TenViki)

  • adventofcode_2022

  • I solved it with just a stack and a list and no recursion in ~80 lines: https://github.com/lhecker/adventofcode_2022/blob/master/src/day07/main.rs

  • aoc2022

  • aoc-2022

  • Solution for both parts in Rust:

  • AoC2022

    Merry Christmas, y'all !!! (by tobstern)

  • aoc2022

  • Solved in some 50 lines of Rust, using just a flat HashMap to represent the file system: https://github.com/frjonsen/aoc2022/blob/master/day7/part2/src/main.rs

  • aoc-2022

    Advent of Code 2022 (In Elixir) (by starcraft66)

  • Probably too long to post, GitHub

  • advent-of-code-2022

    Advent of Code for 2022 in Rust (by ChiefMilesEdgeworth)

  • Rust: https://github.com/ChiefMilesEdgeworth/advent-of-code-2022/blob/main/src/bin/07.rs

  • AdventOfCode

  • [Rust my repo]

  • AoC_Collection

    Nzxtime's AoC Solutions

  • Java GitHub

  • adventofcode

  • c++ repo

  • advent-of-code-2022

    Discontinued https://adventofcode.com/2022 in #Rust (by asaaki)

  • Not pretty, but I believe efficient enough. Uses a few Strings and a HashMap, but does avoid recursion. Interestingly enough latest version with some heap allocations is still better than a few of my attempts to use only the stack (with things like arrays, tinyvec). Performance is okay on my machine, but it's the slowest day so far [ref].

  • AdventOfCode-2022

    Discontinued Solutions for Advent of Code 2022 (by damoc1es)

  • Python: GitHub

  • AdventOfCode2022

    Advent of code 2022 solutions (by davidshomelab)

  • C# solution

  • advent-of-code

  • My Python answer on Github

  • AoC-2022

  • advent

    Advent of Code (by philtr)

  • Golf in Ruby (207 Bytes) (GitHub)

  • aoc

  • Go

  • aoc-2022

    Advent of Code 2022 journey with Rust (by jokr-1)

  • My Rust solution with tuple pattern matching. Tried to write it as idiomatic as I could, any advice?

  • aoc-2022

    Repository for solutions to Advent of Code 2022 (by HoshigaIkaro)

  • github link

  • advent-of-code-2022

    🦆I can't believe I'm doing this again 🦆 (by mrwilson)

  • This one hurt, oof. Source here

  • AdventOfCode2022

    Optimised dotnet solutions for Advent Of Code 2022 (by Timmoth)

  • [Source](https://github.com/Timmoth/AdventOfCode2022/blob/main/Solutions/Day7.cs)

  • AdventOfCode2022

    This is my attempt to solve AdventOfCode2022 (https://adventofcode.com/2022/) and learn some Rust (by samoylenkodmitry)

  • Rust https://github.com/samoylenkodmitry/AdventOfCode2022/blob/master/src/day7.rs I am new to Rust, I am pretty proficient in java and kotlin, but how you can effectively implement graph-like structures in Rust? That didn't work for me ;(

  • advent-of-code

    Advent of code (currently with python 3.11) (by x0s)

  • My Python solutions involving Graphs part_1 part_2

  • advent_of_code_2022

  • No recursion, no maps, just a pair of vectors. Complete with compile-time tests. Github.

  • advent-of-code

  • https://github.com/philipwhiuk/advent-of-code/tree/master/src/main/java/org/whiuk/philip/adventOfCode/twentytwentytwo/Seven.java I assumed it would matter at some point.

  • advent-of-code-2022

    Advent of Code 2022 in Zig (by thallada)

  • Advent-Of-Code-2022

  • aoc2022

    Advent of Code 2022 in Elixir (by intercaetera)

  • Github

  • advent-of-code

    Advent of code solutions (by EmilOhlsson)

  • This Lua code is run by loading the solver as a plugin, and then open the input file in neovim and run :AoC 2022 07 1. Haven't really befriended Lua yet though https://github.com/EmilOhlsson/advent-of-code/blob/main/lua/advent-of-code/2022/07.lua

  • AoC22

  • advent_of_code_2022

  • Using strings, not a very elegant but it works Ruby

  • AoC2022

    Solutions to the Advent of Code (AoC) 2022 (by gequalspisquared)

  • Advent-of-Code-2021

    Made it through all 25 days of Advent of Code for the second time! (by Leftfish)

  • I totally recommend trying - it's going to be a lot of fun and you'll understand the structure better. I'm not a pro and I never studied CS - that's just my experience from last year (day 18).

  • AdventOfCode

  • I have actually made two versions of solution for D7. First, initial, which is more verbose and second in which, I've tried to compress my ideas but without losing too much of clarity.

  • adventofcode-2022

    Advent of Code 2022 (by dehan-jl)

  • Rust: https://github.com/dehan-jl/adventofcode-2022/blob/main/day7-alternate/src/main.rs

  • AdventOfCode2022

    Solutions to all 25 Advent of Code 2022 in Rust 🦀 Less than 100 lines per day, total runtime of less than 1 second. (by AxlLind)

  • Based on the code by u/supersmurfen (https://github.com/AxlLind/AdventOfCode2022/blob/main/src/bin/07.rs).

  • advent-of-code-2022

    I will be attempting Advent of Code 2022 with Rust, a language I have never learned before. (by grhkm21)

  • [Here](https://github.com/grhkm21/advent-of-code-2022/blob/master/day-07/src/main.rs) is my implementation. I probably should create a `Tree` struct that wraps a `TreeNode` as well, but... I am kind of lazy. Note that `.dfs` doesn't allow returning any references e.g. `.dfs(|node| node)` will not work, since that runs into lifetime issues of closures, as they are not declarable. (I am beginner to Rust too, sorry for wrong termonology).

  • AdventOfCode

  • Went with a recursive data structure as well. Github link: Day 7.cs + Day7Classes

  • advent_of_code_2022

    Advent of code 2022 (by HendrikPetertje)

  • AdventOfCodeCSharp

    Advent of Code Puzzle Solutions in C# (by jbush7401)

  • advent-of-code

    My Advent of Code adventure. :D (by flowernal)

  • My Python 3 solution

  • aoc

    Advent of Code solutions in rust and go (by protiumx)

  • Go

  • Advent-Of-Code-2022

    My solutions for Advent Of Code 2022. Every day is written in another language, chosen randomly. (by Jomy10)

  • Today is Go

  • haskell

    My Haskell Learning (mostly AOC) (by martinhelmer)

  • advent-of-code

  • As usual, code on Github, recording on Twitch.

  • AoC2022

    Advent of Code 2022 (by Zaitox)

  • aoc

    Advent of code helpers for Rust (by evenfurther)

  • This comes from three unpublished crates (aoc/aoc-derive/aoc-build) that I implemented last year. You can read their source code on https://github.com/samueltardieu/aoc, and see how they are used by cloning https://github.com/samueltardieu/aoc2022.

  • aoc2022

  • This comes from three unpublished crates (aoc/aoc-derive/aoc-build) that I implemented last year. You can read their source code on https://github.com/samueltardieu/aoc, and see how they are used by cloning https://github.com/samueltardieu/aoc2022.

  • AdventOfCode2022

  • Rust

  • advent

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

  • AdventOfCode

  • adventofcode2022

  • Python 3- Parts 1 & 2: GitHub. No imports, 10 lines, 362 characters including file name. Not insanely proud, as I wanted to be more concise (who needs readability), but it works.

  • advent_of_code

  • But this worked for both parts GitHub.

  • advent_of_code_2022

  • adventofcode

    My Advent Of Code Solutions (by b-charles)

  • adventchallenge

  • C# straight forward going line by line, adding folders in a list, files in another and then looping through both lists to calculate size of folders (sum of all files starting with that path). GitHub

  • aoc2022

  • aoc-rs

  • 18 micro seconds! That's insane. I was happy at 40 microseconds although I CBA to optimise down to as_bytes shenanigans

  • adventofcode2022

    🎄 Advent of Code 2022 solutions in Kotlin 🎄 (by Dantaro)

  • My Kotlin solution: https://github.com/Dantaro/adventofcode2022/tree/main/src/main/kotlin/day07

  • AoC2022

    Solutions to Advent of Code 2022 puzzles. (by SwampThingTom)

  • AoC.2022

    Advent of Code 2022, I'm going to try to use Excel. First with LAMBDA, then maybe VBA or OfficeScripts.

  • Excel VBA, just make the file system and write the files, make a collection of folder objects, and output the full path and .size of each folder. TIL that a blank line in Windows/ASCII is 2 bytes. GitHub

  • aoc22

  • Rust solution. https://github.com/adamchalmers/aoc22/blob/main/day7/src/main.rs

  • advent-of-code-2022

    Joel Eisner's completed TypeScript code challenges for "Advent of Code" 2022 (by joeleisner)

  • AdventOfCode

  • After I had realized that I can pattern match on slices with Rust an elegant solution (nearly) wrote itself :)

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  • AdventOfCode2022

    Solutions to Advent of Code 2022 (by electronsandstuff)

  • advent-of-code

    Advent of Code solutions (by mcwitt)

  • Overengineered but educational (for me) Haskell solution using zippers and recursion schemes

  • advent-of-code

    Advent of Code solutions (by tkocmathla)

  • OCaml, pure functional. This is the interesting tree-builder part, the rest is on github.

  • AdventOfCode2022

  • advent2022

    Advent of Code 2022 (by Fektoer)

  • Rust: https://github.com/Fektoer/advent2022/blob/main/day7/src/main.rs

  • Dlang solution, part 2. I'm embarrassed by this code but I'm sharing it because it took a lot of effort to write it. Previous solutions are available in this repo

  • AoC2022

  • Racket/Scheme

  • aoc-2022

    🎄 Advent of Code 2022 in Rust 🦀 (by andy2mrqz)

  • advent-of-code-2022

  • AdventOfCode2022

    Advent of Code 2022 done in Ruby (by SolarBear)

  • Source

  • AoC2022

    AoC-20220: rust learning (and C# / Powershell cuz why not) (by DDamianoff)

  • C#: my first experience using something like trees. It was exhausting (complete solution in my repo)

  • adventofcode

    Advent of Code solutions (by ErinMorelli)

  • advent-of-code

    My Advent of Code answers (by tcsullivan)

  • Annotated code and video of it running. Running my actual input took ~7 minutes.

  • adventofcode

    https://adventofcode.com/ challenge solutions in JavaScript (by FriendlyUser1)

  • JavaScript Day 7

  • AdventOfCode2022

    Repository for advent of code code to find solutions. This year in Go. (by BlaximusIV)

  • Solution implemented in Go, using a tree and recursion. I'm new to Go, coming from C#. I created a monster and would love any feedback to make it cleaner and more idiomatic!

  • AdventOfCode

  • Solution in C#

  • aoc2022

    Advent Of Code 2022 - Rust. (by mvduijn)

  • Misc-DSA-Practice

  • OOP Python solution

  • adventofcode

    My solutions to the Advent of Code challenges (by djotaku)

  • ​ https://github.com/djotaku/adventofcode/blob/45ab63cf7679e1b6ce61f32a61e03da384d57295/2022/Day_07/Python/solution.py

  • advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

  • advent-of-code

  • adventofcode2022

  • anyway here is the link to my github

  • advent-of-code-2022

    Advent of Code 2022 - https://adventofcode.com/2022 (by aormsby)

  • Kotlin solution, yeah!

  • adventofcode2022-rs

  • Part 1 and 2

  • adventofcode

    Python solutions to Advent of Code puzzles, https://adventofcode.com/ (by fuglede)

  • Python3. Full code. Pretty good excuse for structural pattern matching:

  • Advent-Of-Code-2022

    AoC Solutions in Idris (by daysleeperx)

  • Not optimal, but needed an excuse to have "fun" with immutable trees

  • advent-of-code

  • Kotlin solution with recursion and iterator for the file tree https://github.com/DDihanov/Advent-Of-Code-2022-Kotlin/blob/master/src/main/kotlin/day7/Day7.kt

  • aoc2022

    Advent of Code 2022 (C#) (by p88h)

  • advent-of-code-2022

  • a2tools

    Stuff I write for my Apple //c

  • Part 1

  • aoc

    Advent of Code (by kevinluo201)

  • https://github.com/kevinluo201/aoc/blob/main/2022/day7/day7.rb Basically, I build a class to handle each directory.

  • Advent-of-Code

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

  • git repo

  • advent-of-code-2022

  • My solution in Rust, I expected to have a very hard time on this and was actually pleasantly surprised that I was able to complete it in only a few hours. That being said, my solution is probably horrible

  • AdventOfCode-Day7-SpaceAnalyser

    C# .NET Core console app that solves the AdventOfCode Day 7 - Space Analyser puzzle.

  • C# Solution using Switch, LINQ & Recursive calculation of sub-directories - nothing fancy :/. code

  • advent-of-code

    Advent of code solutions (by rbusquet)

  • python

  • AdventOfCode2022Julia

    Advent of code 2022 done in julia.

  • Julia 11/737, which is my best placement yet, and second ever points.

  • AoC2022

  • My solution for day 7: https://github.com/AlexanderNenninger/AoC2022/blob/master/src/days/day07.rs. I used Rust's sum types in a finite state machine for parsing input. This solutions also demonstrates how to use an explicit buffer for multiple mutating references.

  • aoc2022

  • JavaScript https://github.com/ilsubyeega/aoc2022/blob/main/day07.js \ I think this problem was a little overwhelming for me, who is graduating as a high school student soon. Hope I can refactor this in the future.

  • aoc2022

    My Advent of Code 2022 solutions! (by SourishS17)

  • chapel

    a Productive Parallel Programming Language

  • Blog Walkthrough of a Serial Solution | Late-Breaking Code for a Parallel Solution

  • Advent-of-Code

  • Here is my code: Github

  • advent-of-code

    Advent of Code puzzles (by KT421)

  • Advent_of_Code_2022

    Advent of Code 2022 exercises in PHP (by chipotle)

  • advent-of-code

    My (incomplete) solutions to the Advent of Code yearly challenges. (by Chrinkus)

  • Here's the repo, its way too long for here!

  • Advent-of-Code

    Exercises from https://adventofcode.com/ (by AritonV10)

  • aoc

    KlongPy Advent of Code (AoC) solutions (by briangu)

  • 7b Code

  • Here's my solution having all things immutable and emulating the file system using recursive types. But yes, trees are not something I do every day :/

  • advent-of-code

  • Solution using tree python

  • public

  • Gitlab

  • 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