• @[email protected]
      link
      fedilink
      11
      edit-2
      7 months ago

      I mean, that literally failed just yesterday.

      Also I’m not sure where in today’s problem you would even use a dictionary

      • Zagorath
        link
        fedilink
        English
        17 months ago

        Hey, I haven’t been doing Advent this year. What was day 5’s problem and why did dicts fail?

        • @[email protected]
          link
          fedilink
          37 months ago

          There was a series of number ranges that mapped onto other ranges. The simple approach was filling dictionaries, which worked well for the example data. In the actual data, there ranges were much much larger (in the 100,000,000’s), which made the dictionaries prohibitively large.

          • @[email protected]
            link
            fedilink
            English
            17 months ago

            If each number was 8 bytes wide, it would require, if I didn’t mess up my math, 18 GB to fully represent all seeds/numbers as an array.

      • Spaghetti_Hitchens
        link
        fedilink
        -127 months ago

        If you don’t know the meaning of a word, you can literally Google “{The word you don’t know} definition.” Google.com is a really handy and easily-accessed dictionary.

        • @asyncrosaurus
          link
          137 months ago

          I can’t tell if this is a joke or a troll, buy we’re talking about a Dictionary, which is a common data structure in computer science.