Day 5: Print Queue

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)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

  • @Leavingoldhabits
    link
    17 days ago

    Still in rust, and still inexperienced.

    Forgot to make a separate solve for part two, for part one, imagine this without the make_valid function and some slightly different structure changes around the accumulator in babbage().

    Used a hash map to track what should be in order, and a few indexed loops to keep track of where I’m at and where to look forward.

    Day 5