Day 4: Perilous Pier

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

  • VegOwOtenks
    link
    fedilink
    arrow-up
    2
    ·
    9 hours ago

    I had that too, luckily for me I didn’t need to drbug but only paste the correct number.

    What do you mean by “disassemble” the input?

    • eta@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      By disassemble I mean that I’m not working with the input string itself but transforming it into one list of all the positions of the illegible characters and one map with all the legible ones and their position.

      I think I’ll have another look and compare the results I get with with what they should be for specific codes. I tried just putting in a number about 50 higher than my result and it was still too low so I’m not just off by one.