Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Load more
@trendtags.bsky.socialDec 5, 2026, 7:00 AM

🔥 BlueSky trending tags (30m):

#mutantfam #thelastdrivein #photography #birdoftheday #auspol #fcf #aew #adventofcode #blackpink #blissoo #omniscient-reader-the-prophecy-2 #jisoo #news #nvidia #booksky

?Unknown authorDec 5, 2026, 6:53 AM

I just completed "Rhythmic Factory" - Day 5 2026

I started out doing all combinations of 3 buttons, which was way too slow for part 2. Most of my time was spent on the parser, so switching to a BFS approach wasn't too bad. Cheated by slowly increasing the maximum number of presses 🤫

#AdventOfCode

M@manabutorii.bsky.socialDec 5, 2026, 6:50 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@ggrks.moeDec 5, 2026, 6:50 AM

It's getting more difficult to fit the code into a good single screenshot. First time this year that it's a function that gets top billing haha. We'll see how this goes on.

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

Photo, no descriptionPhoto, no description
@leiladigh.blacksky.appDec 5, 2026, 6:45 AM

I just completed "Dusty Shed" - Day 1 - Advent of Code 2026 adventofcode.com/2026/day/1 #AdventOfCode

adventofcode.comDay 1 - Advent of Code 2026
@luxmesa.bsky.socialDec 5, 2026, 6:45 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@thoughtfulnz.bsky.socialDec 5, 2026, 6:43 AM

Day 5 #AdventOFCode in #rstats. Read the problem, wondered if I was going to need to dynamically generate functions or write elaborate graph transversing. Then looked at the input and realised I could just hard code a list of functions. Code in Alt Text, Part 1 sunset, part 2 duckpond.

library(stringr)
buttons <- list(
  
  function(n) if (n == 0) 7 else n * 10 + 7,
  
  function(n) n * 5,
  
  function(n) {
    as.character(n) |>
      str_replace_all("1", "9") |>
      as.integer()
  },
  
  function(n) n %/% 3,
  
  function(n) {
    as.integer(as.character(as.octmode(n)))
  },
  
  function(n) {
    as.character(n) |>
      str_replace_all("0", "5") |>
      as.integer()
  },
  
  function(n) if (n == 0) 9 else n * 10 + 9,
  
  function(n) n * 9,
  
  function(n) if (n < 10) 0 else n %/% 10
)
# all values within 3 is tractable
solve_microwave_part1 <- function() {
  
  depth0 <- 0
  
  depth1 <-
    vapply(
      buttons,
      \(button) button(0),
      numeric(1)
    ) |>
    unique()
  
  depth2 <-
    unlist(
      lapply(
        depth1,
        \(value)
        vapply(
          buttons,
          \(button) button(value),
          numeric(1)
        )
      ),
      use.names = FALSE
    ) |>
    unique()
  
  depth3 <-
    unlist(
      lapply(
        depth2,
        \(value)
        vapply(
          buttons,
          \(button) button(value),
          numeric(1)
        )
      ),
      use.names = FALSE
    ) |>
    unique()
  
  reachable <-
    c(depth0, depth1, depth2, depth3) |>
    unique()
  
  sum(reachable)
}
solve_microwave_part1()##### Part 2 
# while there are any number of button presses,
# possible values are limited to 0:9999, so the graph is finite & smallish
# just stop when a cycle adds nothing new to exisiting outcomes collection

limit_4_digits <- function(button) {
  function(n) {
    result <- as.integer(button(n))
    if (result > 9999) {
      as.integer(n)
    } else {
      result
    }
  }
}

buttons <- lapply(buttons, limit_4_digits)

solve_microwave_part2 <- function() {
  
  visited <- rep(FALSE, 10000)
  visited[1] <- TRUE   # value 0
  
  frontier <- 0
  
  while (length(frontier) > 0) {
    
    next_frontier <-
      
      unlist(
        lapply(
          frontier,
          \(value)
          vapply(
            buttons,
            \(button) button(value),
            integer(1)
          )
        ),
        use.names = FALSE
      ) |>
      unique()
    
    next_frontier <- next_frontier[!visited[next_frontier + 1]]
    
    visited[next_frontier + 1] <- TRUE
    
    frontier <- next_frontier
  }
  
  sum(which(visited) - 1)
}

solve_microwave_part2()
@ericswpark.comDec 5, 2026, 6:28 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@nolokor.bsky.socialDec 5, 2026, 6:27 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

Here's my solution in Elixir: github.com/AlexanderPol...

It was a brain teaser for the second part, as I was completely lost with how to approach it in Elixir without mutating the state.

adventofcode.comDay 5 - Advent of Code 2026
?Unknown authorDec 5, 2026, 6:26 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@tomaztsql.bsky.socialDec 5, 2026, 6:16 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@sevensea.catDec 5, 2026, 6:10 AM

I've completed Part One of "Snowverload" - Day 25 - Advent of Code 2023 #AdventOfCode adventofcode.com/2023/day/25

(Who was up until 3am learning about various graph algorithms? Certainly not me by any stretch of the imagination!)

adventofcode.comDay 25 - Advent of Code 2023
@sevensea.catDec 5, 2026, 6:09 AM

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@boogers.ioDec 5, 2026, 6:05 AM

This one was pretty fun! I was a little worried this was going to be one of those puzzles where it takes until the end of time to complete unless you're smart about things.

I just completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

adventofcode.comDay 5 - Advent of Code 2026
@luxmesa.bsky.socialDec 5, 2026, 6:03 AM

I've completed "Perilous Pier" - Day 4 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/4

adventofcode.comDay 4 - Advent of Code 2026
@wayoshi.bsky.socialDec 5, 2026, 6:03 AM

I've completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

Broke out a case-match statement just because I could.

topaz.github.iopaste
@toptags.bsky.socialDec 5, 2026, 6:00 AM

🔥 BlueSky trending tags (30m) #16-30:

#lastfourwatched #news #裏垢女子 #musicchallenge #メンズエステ #青空ごはん部 #dragons #fanart #pokemontcg #retrogaming #ukraine #steamgame #gpose #adventofcode #ff14

👇 #1-15 trending tags

TTrending Tags@trendtags.bsky.socialDec 5, 2026, 6:00 AM

🔥 BlueSky trending tags (30m): #the-judge-returns #ji-sung #auspol #steam #photography #letterboxdfriday #wip #裏アカ女子 #indiegame #gamedev #fcf #nintendo #christmas #sunset #furryart

@butakun.bsky.socialDec 5, 2026, 5:56 AM

I've completed "Rhythmic Factory" - Day 5 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/5

hmm, still not a heavyweight. textbook tree traversal.

github.com/butakun/AoC2...

github.comAoC2026/05 at main · butakun/AoC2026Advent of Code 2026. Contribute to butakun/AoC2026 development by creating an account on GitHub.
@zaaaap.bsky.socialDec 5, 2026, 5:53 AM

I just completed "Perilous Pier" - Day 4 - Advent of Code 2026 #AdventOfCode adventofcode.com/2026/day/4

adventofcode.comDay 4 - Advent of Code 2026
@theescapeguy.bsky.socialDec 5, 2026, 5:50 AM

I've completed "Rhythmic Factory" - Day 5 - Advent of Code 2026

Starting to get tricky. I do like simulation problems like these. Was also happy that I was (just barely) in the first 1000 to solve part 2 today when I checked the global solve count.

#AdventOfCode adventofcode.com/2026/day/5

A screenshot of my times for Day 1-5 of Advent of Code 2026.

Day 5
00:16:20 / 00:32:40

Day 4
00:27:03 / 00:29:12

Day 3
00:05:51 / 00:30:13

Day 2
00:07:22 / 00:16:51


Day 1
23:15:13 / 23:16:56