Advent of Code 2023 Day 1 Solve

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

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

  • @josephadamita4329
    @josephadamita4329 Год назад +27

    I had a super hack solution.
    I just replaced all instances of strings like "one" and "two" with "on1e" and "tw2o".
    Then proceeded to use my normal code for part 1 to solve.

    • @siya.abc123
      @siya.abc123 Год назад +3

      Borrow me your brain for a week 🤯

    • @weaseled4118
      @weaseled4118 Год назад +2

      ok that is actually genius wtf

    • @allah9896
      @allah9896 Год назад

      this is actually beautiful

    • @hanx654
      @hanx654 Год назад

      you are the smartest man alive

    • @aylazer23
      @aylazer23 Год назад

      Bruhh 💀, that's actually clever

  •  Год назад +17

    I think it's most difficult part one in AoC so far.

    • @nthistlethwaite
      @nthistlethwaite  Год назад +5

      You mean day one? But yeah, I agree, I think part 2 today had significantly more tricky edge cases than normal for a day 1 part 2.

  • @eavdmeer
    @eavdmeer Год назад +2

    There is really no need to find all overlapping words. The best trick I found is to do both a forward search and a reverse search for both '1','2' etc and 'one', 'two' etc. and keep track of the first and last one on each line

  • @harrisonh1872
    @harrisonh1872 Год назад

    Thank you, Im a newbie just beginning coding in python and your videos really help out

    • @Paciificatrice
      @Paciificatrice Год назад

      Hello mate, newbie here too in python, let's get in touch to work on it together :D

  • @echobucket
    @echobucket Год назад +1

    I tried doing the replace trick at first too, and then you notice the overlap and are like "well crap"

  • @christinazhao8054
    @christinazhao8054 Год назад

    holy my favorite youtuber dropped new vid

  • @ProfessorThock
    @ProfessorThock Год назад +2

    Thought about the tricky overlap issue off the bat but took me too long to decide out how to deal with it 😢

  • @fernefer1071
    @fernefer1071 Год назад

    wow good job, please continue uploading these

  • @sartipablo
    @sartipablo Год назад

    One day I want to be like this guy. Amazing!

  • @codenoo
    @codenoo Год назад

    keep them coming!

  • @CodeF53
    @CodeF53 Год назад

    really enjoyed watching your process here, would love to see day 2,3

  • @fynarael
    @fynarael Год назад +1

    Props!

  • @AnmolSoin-kg2hs
    @AnmolSoin-kg2hs Год назад

    What's the basic scripting you did for scrapping that input file from the website. I am a beginner want to learn this technique

    • @nthistlethwaite
      @nthistlethwaite  Год назад

      I use a batch script that just curls adventofcode.com/2023/day/[arg]/input and saves it to input.txt, then types the contents of the file so I can visually see it on the terminal

  • @363slide
    @363slide Год назад +1

    Hey man, are you ok? It's not like you to miss two AOC uploads and me and my friends were worried.

    • @nthistlethwaite
      @nthistlethwaite  Год назад

      I'm fine! Just hadn't gotten around to editing all the videos I have recorded yet - normally it's not too much work and I try to do it right after AOC but on day 2 I was pretty tired and just slept, which in combination with procrastinating a little has caused me to get behind by a few days now. I'll catch up on uploads soon!

  • @akashvemulapalli260
    @akashvemulapalli260 Год назад

    he's back!

  • @GreenEggsPlusHam
    @GreenEggsPlusHam Год назад

    Where's the thread you mentioned at the end? Curious to follow that too

    • @nthistlethwaite
      @nthistlethwaite  Год назад

      I was talking about the Daily Megathreads on the AOC subreddit! www.reddit.com/r/adventofcode/

  • @ibrainstormibraingaming3541
    @ibrainstormibraingaming3541 Год назад +1

    if you are justice please do not lie... what is the price for YOUR blind eye

  • @WorkingOnData
    @WorkingOnData Год назад

    Is there a way you could make a video breaking down what you're doing for 100% beginners to understand.

  • @idrisstafo2095
    @idrisstafo2095 Год назад

    The secret is in "replace"😂😂😂

  • @AndrewTSq
    @AndrewTSq Год назад

    I dont like AoC at all, but nice you solved it. For some reason I got the complete different number as result?!

  • @lpanebr
    @lpanebr Год назад

    Regular expressions

  • @TheKukunuku
    @TheKukunuku Год назад

    too bad quality :(

    • @nthistlethwaite
      @nthistlethwaite  Год назад +4

      I uploaded in 4k and I think RUclips was struggling to process it - I think the higher qualities should be available now!

    • @sheldonlynn934
      @sheldonlynn934 Год назад

      @@nthistlethwaite they are and they look great! Thanks for the extra effort :)