🚨🚨 Hardcore Leetcode - rm -rf if I fail once 🚨🚨

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

КОМЕНТАРІ • 135

  • @danielvega646
    @danielvega646 4 дні тому +26

    Primeagen always finds a way to make me feel passionate about programming once again

  • @allesarfint
    @allesarfint 5 днів тому +51

    The payout at the end, beautiful. If I wasn't there to see it live I would have thought it was scripted.

  • @k0ns0l
    @k0ns0l 4 дні тому +129

    00:10:48
    CAUTION: Light mode ahead!

  • @egor.okhterov
    @egor.okhterov 4 дні тому +33

    You can temporarily switch to C++ and check the signature of a function. This way, you will see whether "t" can be negative.

    • @antoineleduc7611
      @antoineleduc7611 4 дні тому +1

      Neat

    • @BhavyaGaur-kf7yg
      @BhavyaGaur-kf7yg 4 дні тому +3

      Seems like we have a pro

    • @andrewf8366
      @andrewf8366 14 годин тому +1

      Do they always use the proper type in c++. My memory is saying they almost always used int regardless of it it was necessary to be signed

  • @genkoph
    @genkoph 4 дні тому +44

    the ‘stache tugging has to be censored in japan

    • @andrewm4894
      @andrewm4894 2 дні тому

      Not sure how I felt about it... confused

  • @dedkeny
    @dedkeny 4 дні тому +5

    that is some badass editing on the stache slapping... honestly, kudos to you.............

  • @dedkeny
    @dedkeny 4 дні тому +10

    We NEED to run ads in interviews....
    Sponsored ads INSIDE interviews = GOLD!!!

  • @ninjaasmoke
    @ninjaasmoke 4 дні тому +13

    2:37:51
    i’ve been laughing for a while now😂😂😂😂😂😂 always happens during an interview

  • @FRanger92
    @FRanger92 4 дні тому +4

    I felt you looking into my soul there at the start. lmao that eye contact.

  • @Gvantos0
    @Gvantos0 5 днів тому +47

    The only UA-camr who can make you watch a 5 hour video

    • @John-lw7bz
      @John-lw7bz 5 днів тому

      It's 3h 47m and if you're worth your salt you speed it up sometimes to skip the post where nothing happens. Why did you say 5 hours?

    • @Gvantos0
      @Gvantos0 4 дні тому +4

      @@John-lw7bz
      it was 5 hours before he edit it , i see the first one

    • @astrohgamingZero
      @astrohgamingZero 4 дні тому +1

      hard to speed up at all compared to other UA-camrs.

    • @John-lw7bz
      @John-lw7bz 4 дні тому

      @@Gvantos0 :o he edits and he doesn't take out all the thanking of subs etc? This guy. Just leave the original up then if you're only going half assed with the edit.

    • @John-lw7bz
      @John-lw7bz 4 дні тому

      @@astrohgamingZero I speed up or skip the away from the desk or long talking to chat segments. it's not a trivial amount of time

  • @LunaStorta-u2x
    @LunaStorta-u2x 5 днів тому +2

    Really enjoyable, you could make a series of videos like this where you solve problems on leetcode 😁

  • @Visitor______________________v
    @Visitor______________________v 7 годин тому

    This is actually motivating honestly

  • @KRABSTIK
    @KRABSTIK 4 дні тому +3

    Best stream you've done by far

  • @david23627
    @david23627 2 дні тому +1

    we are primeagen fans of course we enjoy mustache ASMR in the first minute of the video

  • @GamePlay-pl2nv
    @GamePlay-pl2nv 2 дні тому +1

    i closed my eyes when you were doing the mustache test,🤣🤣👍

  • @danielvega646
    @danielvega646 День тому

    That debounce implementation was brilliant!

  • @voobies
    @voobies 22 години тому

    i would love to interview someone with this type of energy, esp when he started the first hard question

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

    Thanks!

  • @Chrisxantixemox
    @Chrisxantixemox 3 дні тому +1

    The Devin AI bills must he piling up with 2 ads every 20 seconds of this video. This is actually the most ads ive ever seen UA-cam push. Incredible.

  • @Mrgreatestfreakout
    @Mrgreatestfreakout 3 дні тому +1

    Hey Prime, could you please tell me what tools are you using to whiteboard your solutions? Is it Wacom tablet and pencil? Or Ipad and pencil?

  • @MyFavTech247
    @MyFavTech247 День тому +1

    You’re such a Character PRIM3! Just my kind of humor!

  • @ShootingUtah
    @ShootingUtah 4 дні тому +1

    Dude that last problem was pretty epic! That's got to be the quickest coding of such a complex problem I've ever seen, JS failed you!

  • @Exilum
    @Exilum 2 дні тому +2

    48:45 To me the worst part about the submission Prime wrote is that if t could be negative it'd be num - t*2, not num. That was really unnecessary risk when you could check both for 0 and negative, especially with rm -rf inbound.

  • @GaneshPalraj1991
    @GaneshPalraj1991 5 днів тому +8

    @ThePrimeTime Our favorite nerd.

  • @georgeindestructible
    @georgeindestructible 5 днів тому +3

    Mustache loop iterations at the beginning xD

  • @aryaman3083
    @aryaman3083 5 днів тому +9

    0:28 peak prime

    • @notoriouspc
      @notoriouspc 4 дні тому +1

      Haven't seen much of this guy. Liked and subbed for this moment.

  • @rydmerlin
    @rydmerlin 14 годин тому

    So the test inputs differ with each submission? FWIW I thought you did really really well. Which is easier reinstalling the OS or growing back your Mustache?

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

    As a man with facial hair i can tell that mustache is as real as it gets!

  • @DecardCain
    @DecardCain 3 дні тому +2

    1:46:17 Primeagen when my mom comes to my room😄

  • @perpl1618
    @perpl1618 4 дні тому

    I feel so loved and understood to know that im not the only one with experiences like question 2

  • @Achter.
    @Achter. 5 днів тому +34

    bro next time we need a timer on the screen. elevates the stream

  • @bob_kazamakis
    @bob_kazamakis 4 дні тому +3

    Set up stream when?

  • @CadeHXH
    @CadeHXH 4 дні тому +3

    48:50, for this problem I just wanted to ask: If t could be negative, wouldn't just returning num be incorrect?
    If we have num = 10, and t = -5:
    If you decrease num by -5, its like subtracting -5, so we add 5 to 10 to get 15
    We can use this logic to say our maximum achievable number is 20 because we can increase num by -5, which is adding -5, so we subtract 5 from 20 to get 15 as well.

    • @Cookstein2
      @Cookstein2 4 дні тому

      Yeah that's what I was thinking, so t is absolute value in effect.

    • @miezekatze3536
      @miezekatze3536 4 дні тому +2

      it said you "add or subtract 1 t times" and it doesn't really make sense to subtract 1 -5 times

    • @Cookstein2
      @Cookstein2 4 дні тому

      Yes it does. 1 times - 5 is - 5

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

    I learned python like 6 months ago, brand new to coding pretty much. I did the same thing until I read, 'increase num by 1, while decreasing number by 1. Then I was f'd. Unfortunately I do not have enough experience to argue why it doesn't make sense, none of them make sense.

  • @the.real.ipatch
    @the.real.ipatch 16 годин тому

    14:40 that's when i clicked 👍

  • @karthik448
    @karthik448 5 днів тому +80

    The real thing you should be doing is to delete your youtube channel if you fail the leetcode problem as that is what's at stake.

  • @sygiii
    @sygiii 4 дні тому +3

    You should start the (potentially longer) timer before starting to read the question, not when you already think you have a solution

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

    why am i so freaked out when he is about to hit that submit button.

  • @DarkStoorM_
    @DarkStoorM_ 4 дні тому

    0:09 Starting off with Marvel83' song, gonna be a good watch 🙏

  • @broggully
    @broggully День тому +1

    Actually slower than Devin feels bad man

  • @flanwithaq2724
    @flanwithaq2724 4 дні тому +1

    Its like a jigsaw game programming edition

  • @LtsGoBrandonGaming
    @LtsGoBrandonGaming 5 днів тому +3

    And that is how you start a video

  • @suhanbangera884
    @suhanbangera884 4 дні тому +1

    Prime, When are you trying Odin?

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

    Educational. Primagen courses are like this?

  • @ZorakWars
    @ZorakWars 4 дні тому

    Memoize with DFS on that last one would've been the optimization the TLE was looking for.

  • @projectodemayhem
    @projectodemayhem 4 дні тому +2

    1:44:07 does one medium leet code already getting targeted ads from Northrup Grumman

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

    what is the name of the app prime is using at 14:28

  • @thanhtupham4726
    @thanhtupham4726 4 дні тому +5

    very impressive bro, but our company AI able to solve all those leetcode problems in 1 seconds and it never yell when it solve them so ...Devin you got a job

  • @Ownedyou
    @Ownedyou 2 дні тому

    Lots of edge cases missed, but entertaining!

  • @Missing_Node
    @Missing_Node 4 дні тому

    Flashbang! Flashbang! FLASHBANG!

  • @adabujiki
    @adabujiki 4 дні тому +1

    [ 3:01 ] Windows wouldn't let you delete that.

  • @LegitBanananas
    @LegitBanananas День тому

    I would hire Primagen just for the company culture he would breed :D

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

    How did time exceed when he submitted it with plenty of time left??

  • @alok_shanker
    @alok_shanker День тому

    Its like DDL is method acting as a proframmer

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

    I got to know the meaning of o7
    o7 to this guy!!

  • @rifathossain328
    @rifathossain328 2 дні тому

    i sweat even looking at leetcode.

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

    mom I'm just trying to learn how to leet code 0:0:35

  • @attentioncestpaslegal7847
    @attentioncestpaslegal7847 4 дні тому

    So rm -rf did not kill the stream ?

  • @the.real.ipatch
    @the.real.ipatch 16 годин тому

    ...wait for it 14:57 😆 😵‍💫

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

    Oh it's a urinal, I thought it was a cubicle at first

  • @GaneshPalraj1991
    @GaneshPalraj1991 5 днів тому

    @ThePrimeTime Your every pose is so memeable.

  • @reactjs1900
    @reactjs1900 5 днів тому

    formal wearing why ?

  • @lichking001
    @lichking001 5 днів тому

    This is such a stupid challenge, i like it a lot :D

  • @bkr_418
    @bkr_418 5 днів тому +4

    0:25 - he had to make weird - arrgh...

    • @HammytheSammy-ds2em
      @HammytheSammy-ds2em 5 днів тому +2

      Gooning with a mustache isn’t weird. I do that every single day

    • @Alexey_Ladya
      @Alexey_Ladya 5 днів тому +1

      The name is freakagen

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

    How is there any risk here? Dot files are in git. Real risk: delete all remote repos and rm root.

  • @boravarol6537
    @boravarol6537 4 дні тому

    0:22 Now I wish that it was fake

  • @dipereira0123
    @dipereira0123 2 дні тому

    BRAZIL MENTIONED!

  • @dedkeny
    @dedkeny 4 дні тому

    the "show pits..." statement...

  • @zer0826
    @zer0826 4 години тому

    Wow - hardcore mode?

  • @LLu-picopickle
    @LLu-picopickle 21 годину тому

    Why this video's category belongs to Path of Exile 2 lmao😅

  • @samhopkins1456
    @samhopkins1456 4 дні тому +1

    Yet he still thinks this is a good way to conduct an interview. Adding pressure on top of an already stressful situation. FUN!!!

  • @AdriReport
    @AdriReport 4 дні тому

    The name... is TheNoOsAgen

  • @diehenne
    @diehenne 5 днів тому +1

    Rougelike

  • @MrFunny01
    @MrFunny01 4 дні тому

    3:40:37 I couldn’t help myself

  • @choc3732
    @choc3732 4 дні тому +2

    I'm confused, is Prime actually looking for a job or just joking around?

  • @keneanalemayehu6832
    @keneanalemayehu6832 4 дні тому +1

    that mustache check was way too long

  • @thefloatingrock
    @thefloatingrock 4 дні тому

    00:20 Maybe?

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

    the end is not what you think

  • @callmy777
    @callmy777 4 дні тому

    00:00:25 somebody call karen

  • @the.real.ipatch
    @the.real.ipatch 16 годин тому

    3:39:04 spoiler alert

  • @ivaylohristov8886
    @ivaylohristov8886 4 дні тому

    You are going to lose the job because of the light mode.

  • @Souljacker7
    @Souljacker7 4 дні тому

    WHITE BOARDING HAVE NO AUTO COMPLETE!
    CHEATER!

  • @myorigaccisbroken
    @myorigaccisbroken 2 дні тому

    MY EYES AAAAH

  • @YammyBoh7
    @YammyBoh7 4 дні тому

    Take my YT PREMIUM

  • @caIebthewood
    @caIebthewood 4 дні тому

    👨‍🚀

  • @joeleames1151
    @joeleames1151 4 дні тому

    So pensive.

  • @goodoleme747
    @goodoleme747 5 днів тому

    this is great lol

  • @nathangwyn6098
    @nathangwyn6098 4 дні тому

    Im better then Prime at leeeetcode less go :D. The max achievable number is a mind breaker though ^.^

  • @yowremco
    @yowremco 4 дні тому

    I don't really understand the end. He fails the assesement and has a minor bug in his program. Was failing a leetcode hard question really so shaming that you got emotional?

    • @ozempickin
      @ozempickin 4 дні тому

      tbh its not that hard a question, and part of the reaction is for dramatic effect.

  • @adammarek8822
    @adammarek8822 5 днів тому +6

    you could be at least 2x as productive if you switch to Intellij/vscode. it looks like for almost a half of your time you are manually formatting code or entering/escaping/switching modes

  • @serenditymuse
    @serenditymuse 5 днів тому +3

    nearly 700K subscribers and you need a job? gotta be a joke.