Primeagen always finds a way to make me feel passionate about programming once again
@lrbn86967 күн бұрын
13:16 - Score of a String [EASY #1] 32:29 - Find the Maximum Achievable Number [EASY #2] 1:20:00 - Debounce [MEDIUM #1] 1:49:11 - Merge Nodes in Between Zeros [MEDIUM #2] 2:17:39 - Unique Paths III [HARD #1] 3:02:50 - Maximum Score Words Formed by Letters [HARD #2]
@allesarfint13 күн бұрын
The payout at the end, beautiful. If I wasn't there to see it live I would have thought it was scripted.
@genkoph13 күн бұрын
the ‘stache tugging has to be censored in japan
@andrewm489410 күн бұрын
Not sure how I felt about it... confused
@AmineTiba2 күн бұрын
@@andrewm4894 it just was too many seconds too long
@mohitjeeКүн бұрын
@@AmineTiba I think he wanted to make a point.
@egor.okhterov13 күн бұрын
You can temporarily switch to C++ and check the signature of a function. This way, you will see whether "t" can be negative.
@antoineleduc761113 күн бұрын
Neat
@BhavyaGaur-kf7yg12 күн бұрын
Seems like we have a pro
@andrewf83668 күн бұрын
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
@omri9325Күн бұрын
Pro tip
@yoshmeme9315 күн бұрын
Honestly thought these leetcode goons were just going on here understanding the problem immediately and then implementing a solution. Its reassuring to see someone like Prime get caught up for a moment and have solve it like a human
@Gvantos014 күн бұрын
The only KZbinr who can make you watch a 5 hour video
@John-lw7bz13 күн бұрын
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?
@Gvantos013 күн бұрын
@@John-lw7bz it was 5 hours before he edit it , i see the first one
@astrohgamingZero13 күн бұрын
hard to speed up at all compared to other KZbinrs.
@John-lw7bz12 күн бұрын
@@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-lw7bz12 күн бұрын
@@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
@dedkeny12 күн бұрын
We NEED to run ads in interviews.... Sponsored ads INSIDE interviews = GOLD!!!
@ninjaasmoke12 күн бұрын
2:37:51 i’ve been laughing for a while now😂😂😂😂😂😂 always happens during an interview
@dedkeny12 күн бұрын
that is some badass editing on the stache slapping... honestly, kudos to you.............
@FRanger9212 күн бұрын
I felt you looking into my soul there at the start. lmao that eye contact.
@GamePlay-pl2nv10 күн бұрын
i closed my eyes when you were doing the mustache test,🤣🤣👍
@charlesamschel271812 күн бұрын
Thanks!
@KRABSTIK12 күн бұрын
Best stream you've done by far
@Exilum10 күн бұрын
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.
@nelsoncruz-os7nz8 күн бұрын
Super impressive. Thanks for this. You never end helping us out here.
@Chrisxantixemox11 күн бұрын
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 KZbin push. Incredible.
@david2362710 күн бұрын
we are primeagen fans of course we enjoy mustache ASMR in the first minute of the video
@aryaman308313 күн бұрын
0:28 peak prime
@notoriouspc13 күн бұрын
Haven't seen much of this guy. Liked and subbed for this moment.
@LunaStorta-u2x13 күн бұрын
Really enjoyable, you could make a series of videos like this where you solve problems on leetcode 😁
@danielvega6469 күн бұрын
That debounce implementation was brilliant!
@projectodemayhem13 күн бұрын
1:44:07 does one medium leet code already getting targeted ads from Northrup Grumman
@GaneshPalraj199113 күн бұрын
@ThePrimeTime Our favorite nerd.
@Visitor______________________v8 күн бұрын
This is actually motivating honestly
@georgeindestructible13 күн бұрын
Mustache loop iterations at the beginning xD
@CadeHXH12 күн бұрын
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.
@Cookstein212 күн бұрын
Yeah that's what I was thinking, so t is absolute value in effect.
@miezekatze353612 күн бұрын
it said you "add or subtract 1 t times" and it doesn't really make sense to subtract 1 -5 times
@Cookstein212 күн бұрын
Yes it does. 1 times - 5 is - 5
@AbuDoujana3 күн бұрын
@@Cookstein2 the t represents how many times you can apply the action not a number you multiply by, you cannot apply an action -5 times.
@voobies9 күн бұрын
i would love to interview someone with this type of energy, esp when he started the first hard question
@Mrgreatestfreakout11 күн бұрын
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?
@Cvar006 күн бұрын
He uses GIMP and his mouse, no tablets
@XDarkGreyX4 күн бұрын
I would use the cheapest wacom. Can't draw/write with mouse
@DecardCain11 күн бұрын
1:46:17 Primeagen when my mom comes to my room😄
@Faisal-jo5vk6 күн бұрын
can someone explain that last part, didn't he solve/get the problem correct?? also what did he change in that code plz someone explain
@hellokittyboyКүн бұрын
Yeah...so combinatorics normally mean trying all possible solutions (there's only so many possible problems to solve basically) that can get expensive if you think about x^n problems where at each step you have x possible choices. With dynamic programming there's normally overlapping sub problems, that's what ends up making the problems solvable. You can see this if you draw out the problem tree - you may have solved the problem of getting from a square to the end so no reason to re-compute that. That's what top-down DP is (I find that easier....) - there's also bottom up where all the square are filled in basically. That can be solved too a lot of time that requires practice.....There's other parts of computer science too besides algorithmic analysis (that's only one class...) I normally would ask more than just those problems. There's people that make money slapping auto-generated AI text online because they understand propaganda and don't care about big-o notation or the RAM accounting model I guess it just depends.
@MyFavTech24710 күн бұрын
You’re such a Character PRIM3! Just my kind of humor!
@Shogoeu2 күн бұрын
What script does he use to capture the results of the submit?
@MikePfunk11 күн бұрын
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.
@DarkStoorM_12 күн бұрын
0:09 Starting off with Marvel83' song, gonna be a good watch 🙏
@maydude25 күн бұрын
that's a pretty good mustache and it does not look fake
@ozgurkalay757911 күн бұрын
As a man with facial hair i can tell that mustache is as real as it gets!
@ShootingUtah12 күн бұрын
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!
@bob_kazamakis12 күн бұрын
Set up stream when?
@perpl161812 күн бұрын
I feel so loved and understood to know that im not the only one with experiences like question 2
@rydmerlin8 күн бұрын
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?
@Achter.13 күн бұрын
bro next time we need a timer on the screen. elevates the stream
@ThePrimeTimeagen13 күн бұрын
@@Achter. Great call
@bob_kazamakis12 күн бұрын
Ah. Like simpleflips
@abdelrahmanmansour716811 күн бұрын
what is the name of the app prime is using at 14:28
@whawiz5 күн бұрын
Looks like GIMP
@victormuriithi792611 күн бұрын
why am i so freaked out when he is about to hit that submit button.
@shrirambm95274 күн бұрын
Bro i watched entire this video, now i got Diarrhoea
@flanwithaq272412 күн бұрын
Its like a jigsaw game programming edition
@karthik44813 күн бұрын
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.
@__Brandon__12 күн бұрын
Hope he doesn't commit to this bit
@kytrst11 күн бұрын
lol
@MyFavTech24710 күн бұрын
Funny how it’s at 69 and holding.
@MyFavTech2479 күн бұрын
It was holding at 69 lol
@Visitor______________________v8 күн бұрын
Shave the mustage
@LtsGoBrandonGaming13 күн бұрын
And that is how you start a video
@the.real.ipatch8 күн бұрын
14:40 that's when i clicked 👍
@nathangwyn60984 күн бұрын
Need more LC vids PRIME! Love watching you break the problems down. I know they take more effot at the end of the day, butttt it's not all about you ^.^
@sygiii12 күн бұрын
You should start the (potentially longer) timer before starting to read the question, not when you already think you have a solution
@DylanNelsonSA3 күн бұрын
We apply the operation at most t times. You can't apply the operation a negative number of times, so the question doesn't make sense at all if t is negative. (I'm not assuming that you apply it exactly t times. At most a negative number is still a negative number.)
@suhanbangera88412 күн бұрын
Prime, When are you trying Odin?
@charlesamschel271812 күн бұрын
Educational. Primagen courses are like this?
@thanhtupham472612 күн бұрын
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
@johnyewtube228612 күн бұрын
The broken English really sells it.
@broggully9 күн бұрын
Actually slower than Devin feels bad man
@adabujiki12 күн бұрын
[ 3:01 ] Windows wouldn't let you delete that.
@Ownedyou10 күн бұрын
Lots of edge cases missed, but entertaining!
@Michaelblm6 күн бұрын
You cant decrease or increase a number by 1 negative times (t) The inequality in the question is ambigous though
@timothyhoytbsme5 күн бұрын
how convenient that he picked his own challenges ;)
@ZorakWars12 күн бұрын
Memoize with DFS on that last one would've been the optimization the TLE was looking for.
@danwroy12 күн бұрын
Oh it's a urinal, I thought it was a cubicle at first
@Missing_Node12 күн бұрын
Flashbang! Flashbang! FLASHBANG!
@christianrazvan5 күн бұрын
U can't apply an operation -1 times , so t should be > 0 ..from the wording
@alok_shanker9 күн бұрын
Its like DDL is method acting as a proframmer
@lakshman58711 күн бұрын
I got to know the meaning of o7 o7 to this guy!!
@gholamrezadar11 күн бұрын
mom I'm just trying to learn how to leet code 0:0:35
@the.real.ipatch8 күн бұрын
...wait for it 14:57 😆 😵💫
@thefloatingrock12 күн бұрын
00:20 Maybe?
@gavinex7 күн бұрын
FInally ytb getting the love we deserve
@reactjs190013 күн бұрын
formal wearing why ?
@rifathossain32811 күн бұрын
i sweat even looking at leetcode.
@TrachealShyBu11 күн бұрын
How is there any risk here? Dot files are in git. Real risk: delete all remote repos and rm root.
@LegitBanananas9 күн бұрын
I would hire Primagen just for the company culture he would breed :D
@friendly011 күн бұрын
How did time exceed when he submitted it with plenty of time left??
@Cvar006 күн бұрын
His solution's time complexity wasn't good enough for the leetcode tests. Nothing to do with the 20 minute timer
@simon643015 күн бұрын
APE! Great Entertainment!
@MrFunny0112 күн бұрын
3:40:37 I couldn’t help myself
@callmy77712 күн бұрын
00:00:25 somebody call karen
@GaneshPalraj199113 күн бұрын
@ThePrimeTime Your every pose is so memeable.
@attentioncestpaslegal784712 күн бұрын
So rm -rf did not kill the stream ?
@lichking00113 күн бұрын
This is such a stupid challenge, i like it a lot :D
@boravarol653712 күн бұрын
0:22 Now I wish that it was fake
@dedkeny12 күн бұрын
the "show pits..." statement...
@zer08268 күн бұрын
Wow - hardcore mode?
@bkr_41813 күн бұрын
0:25 - he had to make weird - arrgh...
@HammytheSammy-ds2em13 күн бұрын
Gooning with a mustache isn’t weird. I do that every single day
@Alexey_Ladya13 күн бұрын
The name is freakagen
@dipereira012311 күн бұрын
BRAZIL MENTIONED!
@ldrives7 күн бұрын
BRAZIL MENTIONED HUEHUEBR
@AdriReport12 күн бұрын
The name... is TheNoOsAgen
@diehenne13 күн бұрын
Rougelike
@io234ujbn6tui11 күн бұрын
the end is not what you think
@paulholsters79322 күн бұрын
In Europe leetcode is not a thing. You get a job when you know somebody. That's all it takes.
@totheunknownigo95502 күн бұрын
Hhhhh man you make me dying 😂
@the.real.ipatch8 күн бұрын
3:39:04 spoiler alert
@samhopkins145613 күн бұрын
Yet he still thinks this is a good way to conduct an interview. Adding pressure on top of an already stressful situation. FUN!!!
@keneanalemayehu683212 күн бұрын
that mustache check was way too long
@colbyberger1881Күн бұрын
the rare bash script
@LLu-picopickle9 күн бұрын
Why this video's category belongs to Path of Exile 2 lmao😅
@nightking46154 күн бұрын
This question sounds like it was asked by an H1 B visa holder who barely speaks proper English. The goal of a programming test is not to decipher some stupid cryptic text!