Advent of Code 2024 | Day 21 "Keypad Conundrum"

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025

Комментарии • 12

  • @ueberseer
    @ueberseer Месяц назад +4

    Excellent explanation of the approach. Also love your approach of showing off an optimized solution instead of the competition solution.

  • @cursed_nerd
    @cursed_nerd Месяц назад +3

    you are a blessing

  • @amar-vt6wr
    @amar-vt6wr 24 дня назад

    Thanks so much, I could never solve this on my own.

  • @priyanshshah6905
    @priyanshshah6905 Месяц назад +2

    Actually thank you so much!!!!

  • @sg1564
    @sg1564 Месяц назад

    Great work! Thanks for the explanation

  • @Chug5003
    @Chug5003 Месяц назад

    Part 2 was wild, even with your great explanation it still took me far too long to understand it and write a solution

  • @eukaryote0
    @eukaryote0 26 дней назад

    How are you seem to be so unaffected by cognitive load? Your explanation is so concentrated and enjoyable. Not a single redundant word.

  • @reeree519
    @reeree519 Месяц назад +2

    This problem is good. Day_21 and Day_17.2 the only one I enjoyed so far for this year. Also Idk if you noticed this but for a robot aside from shortest path, it was never optimal to make too many turns(change in moving direction) when moving from src(u) to dest(v). So there is only 2 options at most when moving from u to v. Either the robot do delta_row -> delta_col or delta_col -> delta_row. Might actually step on invalid cell in between tho. Just need to counter that. It won't matter much due to small grid + only 26 level depth dfs + cache.

  • @djchrisi
    @djchrisi Месяц назад +1

    While it is great to know the complexity of 25 proxy robots, we actually have no clue what steps exactly we have to type in to open the door and let the missing missing Historian free.

    • @miyu1424
      @miyu1424 Месяц назад

      Maybe we were just seeing if it's worth it to rely on the robot network, and if it's too complex, we'll just find another way

  • @flwi
    @flwi Месяц назад +1

    Nice solution! I wasn't able to wrap my head around it and didn't enjoy the debugging experience at all with all the ^v all over the place.
    42:49 I wonder why this is correct though. Do the robot arms _always_ go to the A key first? I thought they only start there and then stay where they are.
    Anyway. I think I'll just convert your solution to rust and call it a day ;-)

    • @vegeta3993
      @vegeta3993 Месяц назад +3

      They initially start at the A, and each code finishes at A