Advent of Code 2024 | Day 01 "Historian Hysteria"

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 16

  • @vegeta3993
    @vegeta3993 10 днів тому +10

    First line efficiency: 😁
    First line readability: 🗿

  • @havenisse2009
    @havenisse2009 10 днів тому

    You are really good. Explaining what you did here with list, map, zip etc is worth an entire video

  • @galactic_fx
    @galactic_fx 10 днів тому +1

    THE GOAT IS BACK 👑👑👑

  • @TheFrogfather1
    @TheFrogfather1 10 днів тому

    It's that time of year again! Nice straightforward puzzle to kick things off.

  • @tdcode
    @tdcode 10 днів тому

    love your solution

  • @acters124
    @acters124 10 днів тому

    yay, youtube finally starting to understand what I want in my feed

  • @priyanshshah6905
    @priyanshshah6905 10 днів тому

    my goat is back!!!!

  • @matteolugli1607
    @matteolugli1607 10 днів тому

    Welcome baaaaack!

  • @fredoverflow
    @fredoverflow 10 днів тому

    Glad to see you back for another round of Advent of Code 🤩

  • @kayebennett7867
    @kayebennett7867 9 днів тому

    One small question. For the second part, wouldn't it be better to create a frequency dictionary of the lists or using a collections.Counter? That way you only loop over each list once, while in this solution, by calling r.count(x), you are looping over the right list for each element in the left list.

    • @hyper-neutrino
      @hyper-neutrino  9 днів тому

      this is true - in future videos i may discuss optimizations, but this is not worth the effort at this input size when the win condition is how fast you get your answer as opposed to how fast your code is

    • @Hillgrov
      @Hillgrov 3 дні тому

      @@hyper-neutrino AoC has a win condition? wth? I thought it was nice small problems we could challenge ourselves with.

    • @hyper-neutrino
      @hyper-neutrino  2 дні тому +1

      it is, i am just referring to the global leaderboard which is the only semblance of win condition it has. you are, of course, completely welcome to ignore it and i would recommend that for beginners, but i don't because i am competing for it (at least i have been in the past few years, not sure how long i will keep caring about it)

  • @brunokingz
    @brunokingz 9 днів тому

    That was a fun easy one... I hope it won't get deranged like last year's lol

  • @flomol
    @flomol 10 днів тому

    You should do it in C so you can actually write the code yourself instead of calling 16 functions

    • @hyper-neutrino
      @hyper-neutrino  9 днів тому +6

      i mean i could but the whole point is to solve the problem fastest lol