Advent of Code 2023 - Day 2 - Solving with JavaScript

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

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

  • @atuki-
    @atuki- 10 месяцев назад +12

    It took me a day to solve part 1 of this, and I had to do a whole rewrite to solve part 2. Watching people laugh through these is so demoralising haha. But good job :D

    • @KristianTheDesigner
      @KristianTheDesigner 10 месяцев назад +1

      Good for you sticking with it! I am definetly in the same ballpark as you. Everything cant come easy to everyone.

    • @pietroggs2508
      @pietroggs2508 7 месяцев назад

      Everyone has been there one day, keep going

  • @ManjaroBlack
    @ManjaroBlack 10 месяцев назад +1

    I love your solution. It is a unique approach, quite different from mine. Seeing others translation of thinking about the problem and into code really helps grow my skills. I appreciate your videos. Keep it up!

  • @7edim
    @7edim 10 месяцев назад +2

    I have ptsd from yesterdays part2, today it was as easy as changing one line of code xD

  • @stevojohn
    @stevojohn 8 месяцев назад

    Would be good to see more AoC videos please.

  • @Falcon-ux9ch
    @Falcon-ux9ch 9 месяцев назад

    Are you ever gonna do the rest of the days?

  • @Deimokas
    @Deimokas 10 месяцев назад +2

    where is day3?

  • @willzin-da-esfiha
    @willzin-da-esfiha 10 месяцев назад +1

    I thought that it was easier than yesterday too. Great video, by the way.

    • @maciejziehlke4479
      @maciejziehlke4479 10 месяцев назад +1

      For me, complete opposite. Day was was easier, but maybe this is because I was doing them both on the same day and attempted day 2 in the late afternoon, after work, tired, hungry, sad and with a headache :)

    • @willzin-da-esfiha
      @willzin-da-esfiha 10 месяцев назад

      @@maciejziehlke4479 i hope you have got a great nap after all that, sir

  • @sebastienrodrigues8509
    @sebastienrodrigues8509 10 месяцев назад

    Extracting each line on a game object with num of game and a list of map color+ number it’s easy to extract max by color and check it

  • @lborate3543
    @lborate3543 10 месяцев назад

    take the word possible and replace it with probable, and this problem gets pretty hard lol. Great stuff CJ!

  • @domf21
    @domf21 10 месяцев назад

    Dude I have the same mustache style lol this is hillarious, just because of that Im following you

  • @markboots_
    @markboots_ 10 месяцев назад +2

    If you look at the top 100 leaderboard per day, you'll see some are already submitting within a minute!?!
    It takes me longer to read the problem.

    • @sohn7767
      @sohn7767 10 месяцев назад +1

      Competitive scene is like that yes

  • @Harry-wl2wz
    @Harry-wl2wz 10 месяцев назад

    what are you pressing to quick format your code to separate but .split, .split, .map etc?

    • @CodingGarden
      @CodingGarden  10 месяцев назад +2

      I have prettier set as my default formatter. marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
      If you press CMD+SHIFT+P on Mac or CTRL+SHIFT+P on Windows, that will bring up the command palette and you can search for "Format Document with" and select prettier. If you look at the option for "Format Document" you should see a keyboard shortcut listed. Mine is OPTION + SHIFT + F
      I'll note that I had to manually format the split to a new line first before prettier will put everything else on new lines.

    • @Harry-wl2wz
      @Harry-wl2wz 10 месяцев назад

      Tried it out and really helpful. tyvm@@CodingGarden

  • @dstutz
    @dstutz 10 месяцев назад

    Turning the chat off for the coding portion was definitely a good idea 😂

  • @jmon24ify
    @jmon24ify 10 месяцев назад

    their descriptions for these problems needs improvement.