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

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

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

  • @allesarfint
    @allesarfint 5 дней назад +49

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

  • @danielvega646
    @danielvega646 4 дня назад +25

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

  • @k0ns0l
    @k0ns0l 4 дня назад +129

    00:10:48
    CAUTION: Light mode ahead!

  • @egor.okhterov
    @egor.okhterov 4 дня назад +31

    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 12 часов назад +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 RUclipsr 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 RUclipsrs.

    • @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 6 часов назад

    This is actually motivating honestly

  • @david23627
    @david23627 2 дня назад +1

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

  • @KRABSTIK
    @KRABSTIK 4 дня назад +3

    Best stream you've done by far

  • @GamePlay-pl2nv
    @GamePlay-pl2nv 2 дня назад +1

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

  • @danielvega646
    @danielvega646 День назад

    That debounce implementation was brilliant!

  • @charlesamschel2718
    @charlesamschel2718 3 дня назад

    Thanks!

  • @voobies
    @voobies 20 часов назад

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

  • @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 RUclips 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 12 часов назад

    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. 4 дня назад +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.

  • @karthik448
    @karthik448 5 дней назад +78

    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.

  • @the.real.ipatch
    @the.real.ipatch 14 часов назад

    14:40 that's when i clicked 👍

  • @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

  • @suhanbangera884
    @suhanbangera884 3 дня назад +1

    Prime, When are you trying Odin?

  • @charlesamschel2718
    @charlesamschel2718 3 дня назад

    Educational. Primagen courses are like this?

  • @LtsGoBrandonGaming
    @LtsGoBrandonGaming 5 дней назад +3

    And that is how you start a video

  • @projectodemayhem
    @projectodemayhem 4 дня назад +2

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

  • @ZorakWars
    @ZorakWars 4 дня назад

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

  • @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!

  • @LegitBanananas
    @LegitBanananas День назад

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

  • @adabujiki
    @adabujiki 4 дня назад +1

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

  • @Missing_Node
    @Missing_Node 4 дня назад

    Flashbang! Flashbang! FLASHBANG!

  • @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 14 часов назад

    ...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 4 дня назад

    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 4 дня назад +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

  • @zer0826
    @zer0826 3 часа назад

    Wow - hardcore mode?

  • @dipereira0123
    @dipereira0123 2 дня назад

    BRAZIL MENTIONED!

  • @dedkeny
    @dedkeny 4 дня назад

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

  • @LLu-picopickle
    @LLu-picopickle 19 часов назад

    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 14 часов назад

    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.

    • @Fe22234
      @Fe22234 5 дней назад +21

      Nice detective work.

    • @beryalex1798
      @beryalex1798 4 дня назад

      every-one-knowy-it-was-joke

    • @MrGriZar
      @MrGriZar 4 дня назад

      Lmao