day 17 part 1 - advent of code 2024

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 9

  • @shrugalic
    @shrugalic 12 днів тому

    Part 2 was very hard for me, only solved it on day 19. My basic idea sounds similar to what you described, working backwards from the last output to the first output, step by step building up the value register a must have had initially.
    It helps to understand exactly what the program does on every turn, because it's not quite as simple as the example program, which just chops 3-bit numbers off the end. I'll leave it vague to not spoil too much.

  • @mazhewitt
    @mazhewitt 15 днів тому

    Thanks

  • @jeroenvanrenterghem6163
    @jeroenvanrenterghem6163 15 днів тому

    Really enjoying the vibe and content of your videos. With nom, you even made me want to kind of re-learn regex...

    • @chrisbiscardi
      @chrisbiscardi  15 днів тому

      glad you're enjoying them! Today was probably a fine day for regex: clear indication for each number (one per line, no overlaps), etc. Also probably fine to split_whitespace and grab the last item for each line too -- play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a25f82e7ab93528c4e5d9768d1a11f93

  • @carterthaxton
    @carterthaxton 15 днів тому

    This problem is day 17, btw.

  • @adsick_ua
    @adsick_ua 15 днів тому

    how much memory do you have?

    • @adsick_ua
      @adsick_ua 15 днів тому

      and why do you run out of it?

    • @chrisbiscardi
      @chrisbiscardi  15 днів тому +1

      I have 64gb and I ran out because I use a lot of heavy creation tools (photoshop, davinci resolve, blender, substance painter, etc) and it had been 72 days since a reboot so the system performance was degrading over time.

    • @adsick_ua
      @adsick_ua 15 днів тому

      @@chrisbiscardi whoa, interesting stuff! I currently have 16GB, but am considering upgrading to a lot more RAM (along with everything else). The new M4 mac mini is petite, but higher configurations tax way too much for additional storage and RAM.