All posts /

#advent-of-code

22 posts

  1. 2 min read Medium

    馃巹Solve Advent of Code 2024 With Me!

    Announcing a spoiler-free YouTube video series for Advent of Code 2024 that focuses on how to analyze and approach each puzzle, not just the answers.

    #advent-of-code#software-engineering

  2. 16 min read Medium

    [Day 20] Pulse Propagation // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 20 in Python by simulating flip-flop and conjunction modules with classes, then finding the rx button press count with LCM.

    #advent-of-code#python

  3. 11 min read Medium

    [Day 19] Aplenty // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 19 in Python: a rule engine that sends machine parts through workflows, then splitting rating ranges to count combinations.

    #advent-of-code#python

  4. 10 min read Medium

    [Day 17] Clumsy Crucible // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 17 in Python: a memoized DFS to minimize crucible heat loss, then Dijkstra with a priority queue for the Ultra Crucible.

    #advent-of-code#python

  5. 9 min read Medium

    [Day 18] Lavaduct Lagoon // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 18 in Python with the Shoelace formula and Pick's theorem, then scaling up to huge hex-encoded dig plans in Part 2.

    #advent-of-code#python

  6. 10 min read Medium

    [Day 16] The Floor Will Be Lava // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 16 in Python: simulating a light beam through mirrors and splitters with BFS, then trying every edge entry point for Part 2.

    #advent-of-code#python

  7. 12 min read Medium

    [Day 15] Lens Library // Advent of Code 2023 (Python)

    Solving AoC 2023 Day 15 in Python by implementing the HASH algorithm and then the HASHMAP lens box procedure with Box and Lens classes.

    #advent-of-code#python

  8. 9 min read Medium

    [Day 14] Parabolic Reflector Dish // Advent of Code 2023 (Python)

    Solving AoC 2023 Day 14 in Python by tilting rocks on a platform, then detecting the repeating cycle to skip a billion spin cycles in Part Two.

    #advent-of-code#python

  9. 8 min read Medium

    [Day 13] Point of Incidence // Advent of Code 2023 (Python)

    Solving AoC 2023 Day 13 in Python by finding mirror lines in ash and rock patterns with a palindrome-style fan out, then handling smudges in Part Two.

    #advent-of-code#python

  10. 11 min read Medium

    [Day 12] Hot Springs // Advent of Code 2023 (Python)

    Solving AoC 2023 Day 12 in Python, from brute-force spring arrangement combinations to a cached recursive approach with early pruning for the unfolded records.

    #advent-of-code#python

  11. 10 min read Medium

    [Day 11] Cosmic Expansion // Advent of Code 2023 (Python)

    Solving AoC 2023 Day 11 in Python, from an overengineered BFS and A* approach to the simple Manhattan distance trick that handles a million-fold expansion.

    #advent-of-code#python

  12. 13 min read Medium

    [Day 10] Pipe Maze // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 10 in Python, finding the pipe loop with a greedy DFS and counting enclosed tiles using the Shoelace formula and Pick's theorem.

    #advent-of-code#python

  13. 8 min read Medium

    [Day 9] Mirage Maintenance // Advent of Code 2023 (Python)

    A Python walkthrough of Advent of Code 2023 Day 9: extrapolating the next and previous values of sequences by repeatedly taking differences.

    #advent-of-code#python

  14. 9 min read Medium

    [Day 8] Haunted Wasteland // Advent of Code 2023 (Python)

    A Python walkthrough of Advent of Code 2023 Day 8: following left/right instructions through a node network, then using cycle lengths and LCM for Part 2.

    #advent-of-code#python

  15. 9 min read Medium

    [Day 7] Camel Cards // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 7 in Python: ranking Camel Cards hands by type and card order with a custom sort key, then treating J as a joker in Part 2.

    #advent-of-code#python

  16. 8 min read Medium

    [Day 6] Wait For It // Advent of Code 2023 (Python)

    A Python walkthrough of Advent of Code 2023 Day 6: counting the ways to beat each boat race record by charge time, then solving one big race for Part 2.

    #advent-of-code#python

  17. 13 min read Medium

    [Day 5] If You Give A Seed A Fertilizer// Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 5 in Python: mapping seeds on demand, then range intersections that beat a 34 minute brute force for seed ranges.

    #advent-of-code#python

  18. 8 min read Medium

    [Day 4] Scratchcards // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 4 in Python: scoring scratchcards with 2^(n-1) points, then tracking won copies with a card count repository for Part 2.

    #advent-of-code#python

  19. 4 min read Medium

    [Day 3] Gear Ratios // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 3 in Python: finding part numbers adjacent to symbols in an engine schematic grid, then summing gear ratios for Part 2.

    #advent-of-code#python

  20. 1 min read Medium

    [Day 0] Advent of Code 2023

    Advent of Code 2023 is here and I am planning to push code daily this time as the problems unfold!

    #advent-of-code#python

  21. 2 min read Medium

    [Day 1] Trebuchet?! // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 1 in Python: the first and last digit of each line, then spelled out digits and overlaps like eightwothree.

    #advent-of-code#python

  22. 3 min read Medium

    [Day 2] Cube Conundrum // Advent of Code 2023 (Python)

    Solving Advent of Code 2023 Day 2 in Python: parsing cube game records to find possible games, then computing the power of the minimum cube sets for Part 2.

    #advent-of-code#python