Day 8: Haunted Wasteland

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • Code block support is not fully rolled out yet but likely will be in the middle of the event. Try to share solutions as both code blocks and using something such as https://topaz.github.io/paste/ , pastebin, or github (code blocks to future proof it for when 0.19 comes out and since code blocks currently function in some apps and some instances as well if they are running a 0.19 beta)

FAQ

  • reboot6675@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I crafted a simple counter-example (single letters for brevity). The way the sequence goes totally depends on the instructions, and we don’t have any guarantees on that. It could be anything. Of course, looking at the input data we could find what the instructions are, but the assumption doesn’t hold in general.

    A = (B, X)
    B = (C, X)
    C = (X, Z)
    Z = (A, C)
    X = (X, X)
    
    L L R L L L R R R -> A B C Z A B C Z C Z
    L L R R R L L L R -> A B C Z C Z A B C Z
    

    Here the distance of Z cycling back into itself could be 2 or 4, depending on what the instruction string is doing.