Thanks Homer.

  • stifle867
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I haven’t been parsing the input string character by character and instead have been parsing into native data structures. It makes the code more verbose but it’s how I want to do it. Unfortunately it does mean most of the time coming up with a solution is structuring the data so I’m hoping I come up with a faster way after a few days.

    • mykl@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Yeah, I couldn’t see a nice approach today so I fell back on an existing Grid class I’ve used in previous years. Having those existing tools helps a lot.

      • stifle867
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I’m still working on my part 1 😭 string parsing makes me feel so stupid haha. But I’m adamant on coming up with a “nice” solution even if the number of lines aren’t minimal. I’ve got something quite nice at the moment and I anticipate coming in under 100 lines (including whitespace, comments, and formatting).