These Problems Made Me A Great Dev

Поділитися
Вставка
  • Опубліковано 29 лис 2022
  • GO SIGN UP FOR ADVENT OF CODE RIGHT NOW adventofcode.com/
    I LOVE YOU MIR THANK YOU FOR MAKING THIS EDIT SO ABSURDLY FAST
    Link to stream this was from: • STREAM VOD: I WAS WRON...
    ALL MY VIDEOS ARE POSTED EARLY ON PATREON / t3dotgg
    Everything else (Twitch, Twitter, Discord & my blog): t3.gg/links
  • Наука та технологія

КОМЕНТАРІ • 88

  • @wiztek1197
    @wiztek1197 Рік тому +38

    Still cant over the guy that did last years AoC in PostgreSQL

    • @metalheader1
      @metalheader1 Рік тому +7

      wait, what now? lol

    • @jl789nz
      @jl789nz Рік тому +2

      Just seen someone doing it in excel as well.

  • @baka_baca
    @baka_baca Рік тому

    Alright this sounds like a great way to brush up and level up on some skills!

  • @aaaaanh
    @aaaaanh Рік тому +83

    Advent should just crown Copilot their MVP already 😂

  • @Bobbias
    @Bobbias Рік тому +15

    Always happy to see advent getting attention. They have some really great problems.

  • @parkourbee2
    @parkourbee2 Рік тому +7

    This is gonna kill my sleep schedule being on east coast, but worth it

  • @flyingsl0ths961
    @flyingsl0ths961 Рік тому +19

    this is gonna be my first time participating in advent of code, pretty excited 😃

  • @Frankolious
    @Frankolious Рік тому

    DUDE , the bass drop at 5:10!!!! YES MAN it even got me dancing haha

  • @chawakornchaichanawirote1196
    @chawakornchaichanawirote1196 Рік тому +1

    Thanks for reminding me about AoC!

  • @MilanRodd
    @MilanRodd Рік тому

    That is awesome! Thnx 4 sharing :)

  • @DennisPing
    @DennisPing Рік тому +11

    I dislike Leetcode, but I remembered the related Leetcode question for the parenthesis problem. I also remembered the related Leetcode question for this year's Day 1. Both were easy level, but useful for students to study.

  • @samuelgunter
    @samuelgunter Рік тому +86

    For part B, wouldn't this work and be simpler to implement:
    declare a variable "count"
    start iteration through all values of the array
    if bracket is ")", count -= 1
    else count += 1
    if count == -1, return index (plus one, since 1-based index)
    using a stack just seems to complicate the process

    • @ponirvea
      @ponirvea Рік тому +8

      the stack is the textbook, most general solution to bracket matching algorithms, he probably came to that solution by googling/researching the problem

    • @mrsherman3103
      @mrsherman3103 Рік тому

      this is exactly what I thought. I would love to know the reason for his solution

    • @samuelgunter
      @samuelgunter Рік тому +5

      @@ponirvea I give that a 0.000000000000000000000000000000000000000000000000000000000000000000000374% chance that that's what happened, because he almost certainly knew about this algorithm already. he used that solution either because of the pressures of being live (this was an old challenge, so points or speed didnt matter for a leaderboard) or because generally overthinks/overengineers things (or a combination of the both)

    • @t3dotgg
      @t3dotgg  Рік тому +9

      Yeah this is faster
      Usually when there are "matches" in problems like this, the next part is more complex matching patterns. I've used this "chemical reduction" problem for interviews for years and it has caused slight brain rot adventofcode.com/2018/day/5

    • @Kay8B
      @Kay8B Рік тому

      This is what I thought of... I'm glad I had a decent approach, usually suck at these

  • @DMSBrian24
    @DMSBrian24 11 місяців тому +2

    The timezone stuff sucks, for us in Europe this is early morning. So we pretty much can't compete if we have a job.

    • @xyangst
      @xyangst 6 місяців тому

      6 am is good for me xd

  • @goosechaser
    @goosechaser Рік тому

    Thank you for this video

  • @abag777
    @abag777 Рік тому +4

    I'm doing advent of code for the first time this year. I didn't realize then there was supposed to be time pressure. I just did the past few days challenges this morning because I put them off. Oh well, I've managed to get some good coder reuse going for some of the problems.

  • @mariansam_was_taken
    @mariansam_was_taken Рік тому +3

    Theo: "if you're a sub"
    Me: "you sure i am"

  • @philmarlin6204
    @philmarlin6204 Рік тому +6

    inb4 the Rustaceans go into hyperdrive for 30 days

  • @QazJer
    @QazJer Рік тому

    can't sleep so I just completed the first day's challenges! pretty fun

  • @NiceTwisT
    @NiceTwisT Рік тому

    im doing this right now after a night shift to distress👌

  • @Zzznmop
    @Zzznmop Рік тому

    PepeLaugh dis gonna be good!

  • @anasouardini
    @anasouardini Рік тому +1

    depending on how B is different from A... A's scalability score changes. which make me think that there is no point.
    you can try to make A as generic as possible but no matter what you cannot guarantee that it would make B easier to code.
    I think that AOC is not much different than LC.

  • @Leto2ndAtreides
    @Leto2ndAtreides Рік тому

    I'd have run through the string with a for loop and done +1 floor for ( and -1 for ), until I hit -1 on floor.

  • @rammehar5531
    @rammehar5531 Рік тому +1

    May you pls explain ,What ares the requirement for site like leet-code e.g. handling compilation for multiple users and run test against the solution?

    • @palaaaurinkoon
      @palaaaurinkoon Рік тому

      There are a few good systems design videos on this:
      ua-cam.com/video/hmoqH48JV00/v-deo.html

    • @samhadi7972
      @samhadi7972 Рік тому

      They most likely use docker with networking disabled and other limits to make it more safe to run on their servers

  • @thepaulcraft957
    @thepaulcraft957 Рік тому +2

    3:35 typical lisp codebase

  • @roberthogan7149
    @roberthogan7149 Рік тому

    I love to see fellow deadmau5 fans.

  • @fnfal113
    @fnfal113 Рік тому

    copilot really solved the problem

  • @Starnamics
    @Starnamics Рік тому +1

    nice

  • @d2vin
    @d2vin Рік тому

    Music used?

  • @TheMaDNiaC
    @TheMaDNiaC Рік тому +4

    What about something like this, instead of a while loop:
    let currentFloor = 0
    let result = 0
    for (let i = 0; i < brackets.length; i++) {
    const char = brackets[i]
    if (char === "(") currentFloor--
    else if (char === ")") currentFloor++
    if (currentFloor === -1) {
    result = i
    break
    }
    }

    • @PunkSage
      @PunkSage Рік тому

      Yeah, this is the clear solution. Unfortunately Theo is not a good at solving these problems. He could've probably failed if it was his live-coding session during the interview. Anyways we still got a decent knowledge about frontend technologies.

  • @OldKing11100
    @OldKing11100 Рік тому

    Roger Roger.

  • @JackstaGamez
    @JackstaGamez Рік тому +2

    new theo vid W

  • @perc-ai
    @perc-ai Рік тому +1

    Where are all my rustaceans at??

  • @Daniel_WR_Hart
    @Daniel_WR_Hart Рік тому +1

    "It's not about who's programming language is the best"
    *disagrees in APL/J/BQN*

  • @invinciblemode
    @invinciblemode Рік тому +1

    Such a great dev lmao

  • @xrehpicx
    @xrehpicx Рік тому

    Wt is that vscode theme

  • @mrlectus
    @mrlectus 9 місяців тому

    Their questions R clearer than leetcode

  • @simp-
    @simp- Рік тому

    how you get that smart autocompletes?

    • @rauldragu9447
      @rauldragu9447 Рік тому +5

      Its called github copilot and it costs 10$/month

    • @abhishek.rathore
      @abhishek.rathore Рік тому +1

      @@rauldragu9447 unless you are a student.. For them its free

    • @natescode
      @natescode Рік тому

      tabnine has a free tier

    • @simp-
      @simp- Рік тому

      @@rauldragu9447 Oh I completly forgot about that piece of software, thanks

    • @simp-
      @simp- Рік тому +1

      @@abhishek.rathore ohhh thats great for me then, thanks

  • @moinbagban87
    @moinbagban87 6 місяців тому

    Vs code theme?

  • @josephsintum1292
    @josephsintum1292 Рік тому

    In excel??

  • @Richard-sp3ul
    @Richard-sp3ul Рік тому

    @theo 🤘🤘🤘

  • @tomaszchmielnicki8676
    @tomaszchmielnicki8676 Рік тому

    Why not do it the functional way?

  • @trendy2826
    @trendy2826 Рік тому

    1:45

  • @SuperSaiyan-tr7fz
    @SuperSaiyan-tr7fz Рік тому

    Its is good and I know they wanted a minimal design. But they should focus more on readability and ui just the minimum would suffice.

  • @ChillAutos
    @ChillAutos Рік тому +2

    Seems kinda weird if someone in a different timezone who's sleeping can never compete with it.

  • @TheSaintsVEVO
    @TheSaintsVEVO Рік тому

    tl;dw do advent of code

  • @Pl15604
    @Pl15604 Рік тому

    I hope you did not ask LC questions interviewing candidates as a SWE at Twitch if you complain about LC :)

    • @georgejoseph2601
      @georgejoseph2601 Рік тому

      Guy is straight up the definition of someone who has most definitely done the LC grind but talks like he hasn’t

  • @The_Nova_Glow
    @The_Nova_Glow 7 місяців тому +3

    i stopped watching after he let copilot just carry him

  • @HowPortal
    @HowPortal Рік тому +84

    Self pro claimed "great" dev.

    • @Zzznmop
      @Zzznmop Рік тому +2

      Boooo

    • @ericshively4082
      @ericshively4082 Рік тому +2

      Looking forward to your AoC livestream for comparison...

    • @apidas
      @apidas Рік тому +13

      indicated by the bleached hair

    • @rohanpandey9957
      @rohanpandey9957 6 місяців тому

      Term great is relative tho

  • @tonysecomm7050
    @tonysecomm7050 Рік тому +2

    I don't think you are a great dev. Stop tooting your own horn. Playing with React is not programming! 😀

    • @t3dotgg
      @t3dotgg  Рік тому +6

      Let me know if you make it into top 200 any day in aoc because I got it for both problems today :)

    • @io-er1ex
      @io-er1ex Рік тому

      I think he means better instead of great. But the word great has more power right? for more clicks 😀

    • @redfordkobayashi6936
      @redfordkobayashi6936 Рік тому +2

      Isn't it a good sign if someone is great with React? You sound like you think that real programming is only assembly.

    • @brunokingz
      @brunokingz 6 місяців тому

      Did you? I only see copilot doing the work for you@@t3dotgg

  • @AndrewTSq
    @AndrewTSq 6 місяців тому

    advent of code is really bad. Why!? well, day 1 problem 2. My code does everything that everyone else had problems with. But I am starting to think there is something wrong with the parsing of the data.. but who wants to check 1000 lines of text ? and even worse.. now I have to wait like 10 minutes before trying again. This is just a "Hey im so good coder" brag thing, and a really bad site that only accepts every 10 minutes. I hope someone does a adventure of code the right way, and not in this really bad way.

  • @Exiide89
    @Exiide89 Рік тому +1

    I haven't used leetcode ever.

  • @sammavrs
    @sammavrs Рік тому

    i couldnt find the video where Theo @t3dotgg talks about LeetCode. would love a link if someone can provide it? PLEASE AND THANK YOU :)

  • @johnpeterson8493
    @johnpeterson8493 Рік тому

    nice