Not gonna lie I was actually impressed when you inverted the whole google doc
@PedroSantos-ru9uw
3 жыл бұрын
hahah emas
@tanned_cosines_
3 жыл бұрын
u ll become a fine interviewer 🙃
@delphinelisabeth
3 жыл бұрын
Rotated
@devstuff2576
2 жыл бұрын
oot em
@jacobkreifels7690
2 жыл бұрын
Because you've never used transform before or because you don't know how to open dev tools?
@amanmathur_
3 жыл бұрын
Some poor kid is gonna watch this and recite it in an interview.
@pguti778
3 жыл бұрын
I'll do!!!!
@karanparmar4318
3 жыл бұрын
I was planning to -
@greatbullet7372
3 жыл бұрын
the show must go on ^^
@facundofrosoni6687
3 жыл бұрын
I had to come to the comments because until 2:34 I didn't even suspect. But when he came up with "the programming language I like to start with is CSS", I said "fk I'm really lost or this guy's trolling me"
@phoneix24886
3 жыл бұрын
Shouldn't I? I thought the bird imitation could get me the job
@erwinschrodinger2320
3 жыл бұрын
Alt F4 to open dev mode, a yes a professional.
@oliverchen4079
3 жыл бұрын
I almost fell for it
@oliverchen4079
3 жыл бұрын
Ctrl. Shift I or F12 or Ctrl. Shift J bruh
@31redorange08
3 жыл бұрын
It actually closed the browser window for me.
@josephcagle
3 жыл бұрын
Joke's on you. That didn't get me because I'm on a Mac.
@vincentadeniji6403
3 жыл бұрын
@@31redorange08 yeah, that's what it's suppose to do rofl.
@kenjopac4247
3 жыл бұрын
I died at "The language I like to start with is CSS"
@JaycenGiga
3 жыл бұрын
Well, CSS *is* Turing complete, soo …
@greatbullet7372
3 жыл бұрын
@@JaycenGiga its dependant too..
@monad_tcp
3 жыл бұрын
well, CSS is a language
@lugiadark21
3 жыл бұрын
Hahahahahhaa same 😂😂😂
@zekiz774
3 жыл бұрын
@@monad_tcp HTML too. It's in the name Hyper Text Markup Language
@clem
3 жыл бұрын
I was going to give you a *Hire* decision, but the bird imitation at the end convinced me that this was worthy of a *Strong Hire*
@yuli1970
3 жыл бұрын
noice
@mouradaouinat8721
3 жыл бұрын
Noice
@Nytrouse
3 жыл бұрын
He owes those birds a thorough inverting 🐦🔀🔻
@going_dark
3 жыл бұрын
my man
@somenamelastnaammee52
3 жыл бұрын
Ayy the algoexpert
@dbtechprojects2392
3 жыл бұрын
"This is bound to make you stand out ..... !important" I'm dying
@artinmajidi1654
3 жыл бұрын
In case anyone doesn´t understand, the important value means how it´s code is prioritized (in some cases properties collide). ! important means not important, so nothing will happen. (Apparently people don't get a joke)
@AsifIqbalR
3 жыл бұрын
@@artinmajidi1654 are you on crack?
@k00p28
3 жыл бұрын
@@artinmajidi1654 I'm pretty sure you are confused and confusing other dude
@rewrittenbytes1616
3 жыл бұрын
artin majidi tf? at least know what you’re talking about before you try to educate someone on something lmao !important is a css property which gives the attribute it’s used upon the highest precedence so basically the joke is if you use !important you’ll always have the highest priority given the context of the joke (he was literally using css) we can safely assume he was talking about the !important attribute in css, instead of using ! as “not”
@user-un7lc4uy9b
3 жыл бұрын
@@artinmajidi1654 !important means a lot , !importat means important, u should study css to understand it, simply it makes the code stronger so the system will do it (because it is important), i advise u not to depend on it all the time or your project will fail.
@tejas3269
3 жыл бұрын
Every time I hear : Do you want to be software engineer at Google I mute sound so that my friends can't laugh at me
@Bebs_
3 жыл бұрын
gO To aLgO expert dot CoMm
@safwanljd
3 жыл бұрын
@@Bebs_ dot io*
@DragonRazor9283
3 жыл бұрын
gEt StUcK?
@captaincaption
3 жыл бұрын
Lmfao
@aty4282
3 жыл бұрын
@@DragonRazor9283 sTeP bRo! *Is your way to go*
@gaxxey4300
3 жыл бұрын
4:38 please show the youtube stats on how many people "clicked off" the video at this point
@bikrambhattacharyya8051
3 жыл бұрын
lmao
@DragonRazor9283
3 жыл бұрын
yes please
@ahmedal-qarqaz3510
3 жыл бұрын
lol
@bawad
3 жыл бұрын
twitter.com/benawad/status/1354088279126249474
@floatingblaze8405
3 жыл бұрын
@@bawad Absolute legend! _Laughs in i3wm on arch linux_
@himbeerme
3 жыл бұрын
"They're like begging to be inverted or something." lmao
@Unreadable69
3 жыл бұрын
I actually laughed so hard when I heard that haha
@himbeerme
3 жыл бұрын
@@Unreadable69 I also laughed out loud
@simonthor7593
3 жыл бұрын
In Python, you can actually do node.left, node.right = node.right, node.left and skip the temporary variable
@samuelgunter
3 жыл бұрын
same with JavaScript, except you have to say [var2, var1] = [var1, var2] (replace var1 and var2 with 2 variables)
@brianevans4
3 жыл бұрын
@@samuelgunter thats the cleanest array swap
@iDraKzy
3 жыл бұрын
@@samuelgunter And if the data is a number and you wanna be a fancy ass you can use the mathematical method: var1 = var1 + var2 var2 = var1 - var2 var1 = var1 - var2 And just like that it's inverted :D
@samuelgunter
3 жыл бұрын
@@iDraKzy well yeah if you want to use extra lines and make it unclear :p
@iDraKzy
3 жыл бұрын
@@samuelgunter Or if you use another language than python or javascript ;p
@StevenCastellucci
3 жыл бұрын
I don't know what's more impressive -- your coding skills, or your ability to keep a straight face while giving "advice" :D
@mo99
3 жыл бұрын
"Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off." - Max Howell, creator of Homebrew
@KarimShalapy
3 жыл бұрын
Did y'all hear Ben imitate the birds' sound? He's secretly a bird that hates how trees look and his sole purpose in life is to invert 'em all!
@satvikreddy8662
3 жыл бұрын
**at a faang interview** Interviewer: I would like you to perform the chacha slide on a binary octopus. Ben: You know I hold the world record fastest binary octopus chacha slide right?
@akshitkumar9402
3 жыл бұрын
6:55 should be 10 spaces Failed the interview like a chad
@ahuman32478
Жыл бұрын
I came back to this video to thank you. A week ago, I applied to an entry-level python job and I managed to land an interview with the company. They asked me the classic questions like "What are your weaknesses", etc, and I was bombing so hard because I wasn't confident. But then, the magical moment came. They asked me to plan out a program to invert a binary tree on a whiteboard. Thankfully, I watched this video and was able to complete the task flawlessly. The recruiter was so impressed that he recommended that I work in a senior position instead of an entry-level one. Long story short, I ended up becoming the youngest CEO of a Fortune 500 company. Thank you, Ben Awad!
@aerohk
Жыл бұрын
Fortune 500? That's a nice word for non-FAANG companies. Not impressed, try harder.
@saideepesh6036
3 жыл бұрын
9:54 when you're using Angular in front of Ben Awad
@SuboptimalEng
3 жыл бұрын
*Ben Awad Exists* Angular: 👁👄👁
@sainathsingineedi2922
3 жыл бұрын
Hi suboptimal
@SuboptimalEng
3 жыл бұрын
@@sainathsingineedi2922 so we meet again 😂
@AnimusAgent
3 жыл бұрын
angularJS*, cuz angular is a different framework ;)
@airor4
3 жыл бұрын
@@AnimusAgent That always confuses me. Which one is he talking about? He should surely know angular 2.0+ is angular and not angularjs right?
@amanrubey
3 жыл бұрын
this cracked me up " whenever u look at binary tree it already looks inverted"🤣🤣🤣
@DessertRatt
3 жыл бұрын
"18 font so we can actually see what we're doing" Someone get this man a medal for this level of comedy
@aaronmarsh8
3 жыл бұрын
Glad to see the Angular jokes are back 😃😂
@thatguyoverthere1648
3 жыл бұрын
8:25 Bruh. “I’m getting a compile error” in google docs, and in python, an interpreted language😂😂
@_trbr
3 жыл бұрын
Are you implying that Ben made a mistake here? Don't be ridiculous, he's a haskell chad - he wouldn't ever make a mistake
@thatguyoverthere1648
3 жыл бұрын
Oh, of course, I forgot about the new pep, which allows you to compile in google docs, ben couldn’t be wrong
@memespdf
3 жыл бұрын
8:45 If you want to impress your interviewer, you can use the more pythonic way: node.left, node.right = node.right, node.left Note that this may also cause C++ developers to hang up on the spot so use with caution.
@hipstergod
3 жыл бұрын
yeah from interview experience(over 40 tech interviews) they much rather you keep to normal conventions and not take advantage of Pythonic shortcuts, youre showing you know the language but youre mossong out on proving the thing theyre looking for whoch is programmatic understanding of data structures/algos if you do this stuff always make sure to state to the interviewer whats happening behind the scenes
@doc8527
3 жыл бұрын
@@hipstergod Exactly. It's a video for fun but I saw a lot of people are talking about those language shortcuts. I hate today's algo interview but a lot of people are indeed misunderstanding the "original purpose" of those questions. You can use those shortcut after explanation or show them the not shortcut version. They want to know your understanding of basic data structures/algos. Believe or not, a lot of people can do some fancy `filter()` `reduce()` functions to solve the problem with 1 line but don't know how to use a simple for loop to achieve the same thing. When you need to do some specific optimizations with your own for loop, this is the key why those questions are designed. Many terrible/slow apps have some filter(map()) like combination code to deal with some simple problem behind the scene, end up has O(n^2) - O(n^3) without concern. Unfortunately, 99% of algo questions are over complicated due to the markets, hot trends, salary, population, even H1B, etc. I believe the result of the bar rising is a complex problem behind the industry.
@hipstergod
3 жыл бұрын
@@doc8527 yyeeess, I use Python for my interviews. its my first language and perfect for interviews but using Pythonic shortcuts are so much cancerrr. I hate going to leet code or hacker rank and seeing people throw 1 line solved and theyre so complex in that one line that no one else unless they know the shortcuts will understand, completely destroying the whole point of teamwork
@dscham1507
3 жыл бұрын
I'm intrigued, how does this work? Oh wait, does it do 2 assignments at the same time, seperated by a comma? Holy 😨It's cool though.
@OMGclueless
3 жыл бұрын
@@dscham1507 Yup. The comma on the right builds a 2-tuple out of the right and left values. The comma on the left pattern matches against sequences of length two and assigns the values it finds to the left and right attributes. It works because the entire expression to the right of the equal sign is evaluated before any of the assignments on the left occur.
@nicholast
3 жыл бұрын
I have an interview next week and will definitely be using this strategy! Thanks Ben!
@BigBahss
3 жыл бұрын
This series is amazing, I love your subtle humor.
@rishabhscodes
3 жыл бұрын
F (for the microsoft interns who bring users to VSCode by making extensions)
@Enroxxx
3 жыл бұрын
btw, they get paid, pretty well.
@Nnm26
3 жыл бұрын
🎵"You suck at coding yeah you totally suck" 🎵
@officiallyjk420
3 жыл бұрын
Your explanation of swapping left and right was actually very welcome. I made the mistake of not using a temporary variable when I wrote my first swap function and I could not figure out why it wasn't working!!!
@nskybytskyi
3 жыл бұрын
def InvertTree(node): if node: node.left, node.right = InvertTree(node.right), InvertTree(node.left) return node If you use python then why not unleash its true power? // with std::tie and std::make_pair, the same thing is possible in C++
@vojvoda-draza
3 жыл бұрын
Now do it in c
@manhalrahman5785
3 жыл бұрын
@@vojvoda-draza I can do it in PHP
@jimbos22
3 жыл бұрын
"nice tree class, i always wanna make sure that i'm inverting the whole forest " this got me
@juledz
3 жыл бұрын
That's how they made TENET just a bunch of transform classes
@aaronvillegas7900
2 жыл бұрын
More of these videos from this Playlist please! Love them!
@ericlunadev
3 жыл бұрын
8:55 You can do the variable swap in python without that tmp var. You just need to do: node.left, node.right = node.right, node.left
@chaidaro
2 жыл бұрын
You must be joking right ? Of course, he knows.
@gettinjcob4206
Жыл бұрын
but thats inferior to transform rotateY
@Noah-fx4cm
3 жыл бұрын
"they've never touched an underscore in their life" lmaoo, this speaks to me
@neeraj1bh
3 жыл бұрын
This is the motivation I needed before applying and it's !important to watch twice before an interview.
@bluebee2431
3 жыл бұрын
Watch it recursively with no base case, for sure
@billatwork9357
3 жыл бұрын
As an Angular developer, I love you! Most amusing channel on KZitem all-together!
@notleeland
3 жыл бұрын
I haven’t watched this channel in a couple years. Ben, you’re freakin hilarious now ahaha
@Raj00001Mr
3 жыл бұрын
You are getting really good at it, Man. Thanks for the video.
@user-xu7yf8gv2f
3 жыл бұрын
Google Headquarters: " Don't give Ben a job , KZitem will miss so many great videos " ❤️❤️🔥
@blink11101
3 жыл бұрын
They already have, he's on their payroll thanks youtube. Ben is meta af lol
@ismaildalhatu308
2 жыл бұрын
I’ve never being that happy for subscribing till today. 😂😂😂 I love the personality.
@kaikalii
3 жыл бұрын
Counting out the spaces really got me
@ivovanderknaap4616
3 жыл бұрын
I'm doubting my entire codebase which was inspired by ben's full-stack tutorials now.
@prithivirathinam
2 жыл бұрын
Ben, you have always been on my feed when I start watching more tech videos but I am legit subbing you after this. This is a masterpiece .. 😂😂 .. enjoyed the diss at microsoft and certain someone working there.. 🤣
@himanshupratap29
Жыл бұрын
Loved your coding style, loved your sense of humour.
@JadeDevinCabatlao
3 жыл бұрын
"Binopus". For a moment, I heard something else.
@m4gg197
3 жыл бұрын
bino pusses
@potatofu5611
3 жыл бұрын
🙀
@nathanielwoodbury2692
3 жыл бұрын
Ben is literally my favorite tech channel on KZitem
@kalyansreekarjhade2944
2 жыл бұрын
This is the first video I watched in your channel. I pinched myself to check if I was dreaming.
@mojimojimojimojimoji
2 жыл бұрын
For a second there I thought you're gonna use comic sans and my heart skipped a beat.
@FLUFFYCAT_PNW
3 жыл бұрын
Bro this is killing me... So funny my lord a funny nerd. Subscribed, my man.
@rIyAsE
3 жыл бұрын
Solving a problem like this is really helpful. Expecting more..
@usmanmir5663
3 жыл бұрын
Last time I was this early I wrote 50 lines of code without a single error I was never this early
@shreyanshmishra6613
3 жыл бұрын
The css one got me... I laughed so hard!
@nilen
3 жыл бұрын
Thanks so much Ben
@michapodlaszuk9025
3 жыл бұрын
You can also go for node.left, node.right = node.right, node.left and that works well too
@pratheeks
3 жыл бұрын
8:05 best explanation of screwing up swapping. Btw can we use (Node.left, Node.right) = (Node.right, Node.left)? Edit: It works, you don't even need to use the parentheses.
@dwhdai
3 жыл бұрын
the content just gets better and better
@user-se2tq1ls3v
3 жыл бұрын
I don't know if you all knew that but in python you can literally write- a, b = b, a this will switch those two and it's really nice and not very known
@twitchhighlights9802
3 жыл бұрын
I just started to code. Thanks for showing me how to get a job at Google. I think I'm going to pass it.
@EricHampton12
2 жыл бұрын
I was going to sub regardless, but the !important completely sold me. Nice work!
@ishtiaquekhan1148
3 жыл бұрын
The "ad" actually popped up at the end of the video!
@emax75
3 жыл бұрын
dude i was waiting for something like this :D, after that interview
@TwoTeaTee
3 жыл бұрын
I'll be mad if he gets a call after this masterpiece!
@TimeWobblers
3 жыл бұрын
First I thought it was an actual guide on inverting a binary tree... Got hired using this approach, thanks!
@mabroorahmad2182
3 жыл бұрын
Love how the image is commented!
@percyvalmasuku
3 жыл бұрын
Your content is amazing I had to subscribe.
@rockpickable
3 жыл бұрын
this is the first of your vids that i'm watching. took me a while to figure out, that you're just trolling xD
@Fidelity_Investments
3 жыл бұрын
"The programming language I'd like to start with is CSS" ~Ben Awad, 2021.
@luke7503
3 жыл бұрын
It’s so well made that even with no coding knowledge I can tell this is cursed as fuck
@bjul
3 жыл бұрын
Ben, you are hilarious and instructive. Thanks for this 🙏
@heavencanceller1863
3 жыл бұрын
I came here for a serious video and I was not disappointed. loved it!
@frankeke8541
3 жыл бұрын
7:53 tech with tim got roasteeeeed
@wewep6649
3 жыл бұрын
4:03 nice one! Now I can finally apply for a job at Google.
@sameer_sah
3 жыл бұрын
One of the hilarious videos I have watched in a while.
@gavincraddock5772
3 жыл бұрын
Love it, recommended to my A Level CS students. Left arms frequently get chopped off. I'm concerned that some won't get the humour, but hey, that's life in the big city.
@alifirhas3550
3 жыл бұрын
Thanks for the tutorial, especially for the google docs dark mode extension
@m4tt72
3 жыл бұрын
the 5 spaces made me spill my drink
@rickr937
3 жыл бұрын
This should be in youtube rewind 2021 or get an Oscar or even a Turing award
@supriyosarkar1806
3 жыл бұрын
This made my whole morning XD
@jack8750
3 жыл бұрын
This is really, REALLY good.
@mabroorahmad2182
3 жыл бұрын
This is so funny! Brilliant Job!
@veryniceman4059
3 жыл бұрын
this video taught me that i know nothing about coding, i need to re-learn everything that sucks ._.
@evelyntelevision
3 жыл бұрын
Important facts, made even better with the cedar waxwing cameo at the end. Those birds get drunk on berries, that's probably why they want to get inverted.
@mulanszechuansauceisthemeaning
3 жыл бұрын
this may be the best programming video out there
@shivang.tripathi
3 жыл бұрын
Each video that I watch makes me think, "I am glad I found this channel!"
@CynthiaSotoCaballerolYEAHl
2 жыл бұрын
This video is so you Ben xD. Thank you, it made me laugh
@nicktech2152
3 жыл бұрын
Alt+F4 to open dev tools is now my favourite shortcut
@abdullahfurkanozbek7558
3 жыл бұрын
I really enjoyed your videos, the jokes are really put me in good mode. Thanks Ben 🖐
@sechpham
3 жыл бұрын
Damn I don't normally like youtube videos but this is just too good lol
@pricechadwick
3 жыл бұрын
Great stuff. And a nod (maybe) to the "You Suck At Photoshop" series.
@sensiblewheels
3 жыл бұрын
0:40 I lost it here 🤣🤣 Jeez I'm amazed you made it though with a straight face. Edit: Okay I love your humour 🤣🤣🤣🤣🤣 This one was incredible!
@meep3043
3 жыл бұрын
I love this series.
@ahmedal-qarqaz3510
3 жыл бұрын
This video has better CS comedy than the entirety of silicon valley
@krishnav6226
3 жыл бұрын
I really like this guys sense of humor.
@GersonAlmonte
3 жыл бұрын
Ben, what do you think of prisma 2 vs typeORM? greetings from Chile.
Пікірлер: 845