What’s more cocky and sarcastic than Ben Awad? Ben Awad after he successfully reverses a linked list. Check out the video we did on Ben’s channel if you wanna see _me_ get interviewed by Ben! kzbin.info/www/bejne/nZ_Oo3epmp6EgcU
@sangrambarge70814 жыл бұрын
you guys are making awesome content, making software engineering fun
@thaer9544 жыл бұрын
Can i apply and get an interview at Google when I'm living overseas? Or do i have to move to the US before applying for the job...
@thaer9544 жыл бұрын
What advice do you have for us foreigners?
@migueldomingos45704 жыл бұрын
😂
@poisson66734 жыл бұрын
kzbin.info/www/bejne/aXbUmpelmpd8pck
@TechWithTim4 жыл бұрын
Hey, why does Ben get the easy question!!! I had to suffer through the very hard one for a whole hour 😑
@rareshika4 жыл бұрын
R.I.P
@devguyahnaf4 жыл бұрын
coding interviews are truly broken.......it just went brrr
@dontsubscribetomychannel86194 жыл бұрын
Rip
@blazi_04 жыл бұрын
Hey Tim you can watch the title , it says " Easy interview " And I think you r better than awad in coding 😏😉⚘
@TechWithTim4 жыл бұрын
but thanks ;)
@leonardomorel94123 жыл бұрын
I imagine this guy saying "idk that's pretty sus" in the actual interview and the google techlead be like "Aight, you in"
@ZVEKOfficial3 жыл бұрын
AMOGUS KEANU REEVES REDDIT WHOLESOME 100 EPIC GAMER MOMENT GOOGLE APPROVED INTERVIEW
@MBTIMemes3 жыл бұрын
@@ZVEKOfficial ok
@foo32682 жыл бұрын
@@ZVEKOfficial this was 11 months ago, give it a rest brainlet
@GyaneshISHU4 жыл бұрын
Clem : Do you have any questions for us ? Ben : How on earth can you keep using Angular ?
@LuisMorales-yx8di4 жыл бұрын
Clement you should interview more beginners and see their progress in a couple of months. this would be really fun and interesting
@mti2fw3 жыл бұрын
It'll be awesome! 🚀
@list90163 жыл бұрын
calling ben a beginner DAMN
@jomalomal2 жыл бұрын
@@list9016 bro did you see how much he struggled to reverse a linked list? Clearly a beginner, at least with data structures and algorithms
@shadowpwls3 Жыл бұрын
@@jomalomal these things take practice ,it's nothing magical with them.
@GodofStories Жыл бұрын
@@jomalomal you're confusing the meaning of a "beginner" to programming to the meaning of knowing how to study particular coding problems like reversing a linked list. I might have studied linked lists in a college class. But programming for 5 years + earning more than 6 figures. I have never needed to know how to reverse a linked list. But once I looked at the problem, studied it and learnt it fully within a couple hours. So I'm saying you're confusing studying leetcode questions to being a beginner to coding. You can program without knowing a lot of these questions like inverting a binary tree. All those questions only show you know how to study for an exam. Ben is clearly not a beginner, he's programmed a lot. He just didn't take time to study those Leetcode questions
@natetate7853 жыл бұрын
Ben looks so much happier in this video then he does in any of his own.
@jovanjevtic53114 жыл бұрын
You should interview him for Angular
@clem4 жыл бұрын
I think Ben would just walk out of that interview and even *rm -rf* the machine he'd be interviewing on.
@alphacoder38224 жыл бұрын
Ben hates angular
@dishagupta74464 жыл бұрын
I literally want to watch this😂😂
@notquitehim4 жыл бұрын
@@clem hahahahahah
@Hannah-ly6ff4 жыл бұрын
@@clem 😂😂😂
@andrewv85484 жыл бұрын
I love Clement giggling at Ben's every move
@clem4 жыл бұрын
That's what happens when you interview a natural comedian.
@nomadvagabond12633 жыл бұрын
@@clem ehm👀 do you mean he is a joke?😂😂
@aryanpuri61923 жыл бұрын
@@nomadvagabond1263 nope his live is a joke 😂😂😂
@Saitama-py8dz3 жыл бұрын
how could you beat the guys who have been coding for years when you have been coding only for 6 months? you are amazing and talented.
@danny.golcman6846 Жыл бұрын
He is smart and also has a math background so that helps him a lot when he codes as coding involves a lot of problem solving, logic, and analytical thinking.
@jonsnow92464 жыл бұрын
There is a video on my Algoexpert ad 😂
@MisraPreetiman4 жыл бұрын
*changes d to D and calls it Big D in a coding interview* Interviewer - HHHHHMMMMMMMM 👀
@aryamankukal10564 жыл бұрын
tel me the timestamp for when that happened! Please!
@bingpingbongpong6624 жыл бұрын
@@aryamankukal1056 pretty much at the beginning, first question when he starts commenting the way
@brewlian114 жыл бұрын
Dallas is also referred to as The Big D 😂
@INKILU4 жыл бұрын
@@aryamankukal1056 6:48
@josephmichel25813 жыл бұрын
Finally someone who noticed
@bonzupippinpaddleopsicopol80944 жыл бұрын
10/10 would love to see Ben do the actual coding interview. Make him use Angular 👀
@JayPatel129283 жыл бұрын
Apart from the actual coding, this guy is just so fun to work with.
@De4dlyX4 жыл бұрын
this is one of a few computer programmers that is this energetic and interesting in terms of communication and interaction, most people I know are nerds and introverts, that is also myself LOL
@dk3153 Жыл бұрын
dude seems so happy and cocky at the same time, couldnt help it but smile all the way through the video
@atifadib4 жыл бұрын
i thought clement will pull his hair out as soon as awad named a variable "next_guy" :)
@clem4 жыл бұрын
😂Not the best variable name for an arbitrary linked list node, but I figured Ben wouldn't name it like that in a real production-grade codebase. Also, this was just a fun interview!
@clem4 жыл бұрын
Classic Ben Awad though.
@necaton3 жыл бұрын
what would be a better name? xD
@casperes09123 жыл бұрын
@@JustTheHighlights Equality!
@mostafahana17133 жыл бұрын
😂😂😂😂
@Digital9634 жыл бұрын
He lost me when he shortened “temp” to “tmp” but left “previous” as “previous
@brooksgunn52354 жыл бұрын
😂😂😂
@TheoParis3 жыл бұрын
@@brooksgunn5235 LMAO
@DreaminBig3 жыл бұрын
Typo
@lucasthorsen7844 жыл бұрын
This video was super fun, I myself love frontend engineering and I'm a big fan of both you and Ben Awad, so I'd definitely like to see you put him through a real google coding interview.
@weirdduck45784 жыл бұрын
It's kind of fun seeing a master failing a bit in other master's craft. Great video clement.
@danielgigago262 жыл бұрын
That inverseLinkedList could be a real challenge for someone who never heard about that before, it is not something we normally do in a daily basis. I can say it is not easy, even harder than the matrix challenge in the later session with Ben.
@ISmellCapDog2 жыл бұрын
I pause the video at the linked list reversal question and challenged myself to come up with a function. It took me an hour but I finally got it! Now I'll watch what he came up with.
@ISmellCapDog2 жыл бұрын
I completely over complicated my method compared to his...
@mr.mystiks99684 жыл бұрын
Imagine if a very skilled candidate adopted Ben’s skill of typing jk and troll var names and comments
I forgot how to reverse a linked list after I saw Ben scramble😂
@geeshta3 жыл бұрын
"I'm not happy about that naming convention" ohhh Ben I love you for this.
@GodofStories Жыл бұрын
Dude watching this again after an year or so, watching Ben is still so funny man
@rw57364 жыл бұрын
Ben is the man. Cool to see the colab!
@amirhassan65494 жыл бұрын
This the only video I know how to reverse linked list. Means easy task I have seen on this channel otherwise I have only seen a difficult task here. I prefer all who see my comment to see this channel because it is really helpful. Best for logic design.
@killswitch48974 жыл бұрын
This was by far one of the best nd funniest vids I've seen on this channel.... "How about that algo girl" was just epic 😂😂
@adityak12314 жыл бұрын
I didn't know what inverting a binary tree was and once I saw that diagram, I immediately got the solution(same as what Ben did). Also, using multiple assignment is shorter tree.left, tree.right = tree.right, tree.left.
@Dyanosis Жыл бұрын
tree.left, tree.right = tree.right, tree.left will be incorrect because tree.left will not be what you want to set tree.right to. You still need a "temp" var to hold tree.left before you set tree.right. But yes, multiple assignment (for languages that understand it, is useful here).
@adityak1231 Жыл бұрын
@@Dyanosis it does. The assignment expression has variables passed by values on the right. Try running it for yourself once.
@Shubham-xh9nz4 жыл бұрын
Imagine cracking an angular jocks in google coding interview.
@toxicass1004 жыл бұрын
You also can reverse linked list with recursion: def reverse_linked_list(node, next=None): if node.next is None: node.next = next return node new_node = node.next node.next = next return reverse_linked_list(new_node, node)
@blasttrash4 жыл бұрын
17:21 Ben is not pulling his punches back lol. Roasting about Vim mode in the video 😂
@WebDevAnjali2 жыл бұрын
Jezz i can never be this happy talking or giving my interview both of them are so chill. Greate watching them . I'm far away to crack any interview btw.
@jackjohnson76602 жыл бұрын
For whatever reason linked lists are so confusing to me compared to other data structures. Seeing that it even made Ben have to really think about it makes me feel somewhat better about myself
@Dyanosis Жыл бұрын
LinkedLists are exactly what you think the are. They're Lists that refer to their elements by links. If you think about how Arrays work under the hood, they're LinkedLists, but only in memory. Meaning the Array knows where each element is due to its place in memory. If you're confused by LinkedLists, you must be really confused by DoublyLinkedLists then. Which is just a List where each Node knows it prev and next. Did a project in school where we built Google's ranking system using DoublyLinkedLists, it was easy and made total sense.
@trampflips101 Жыл бұрын
@@Dyanosis "If you think about how Arrays work under the hood, they're LinkedLists, but only in memory" - that's gotta be the most confusing way of explaining arrays i've ever seen lol
@TheRaspPie4 жыл бұрын
There's actually a missing edge case. If the linked list is empty, it is represented by None and the function crashes accessing curr.next in line 14.
@ayhamboi97203 жыл бұрын
The function accepts the head as input, implying that the list has at least one item being the head
@theendurance3 жыл бұрын
@@ayhamboi9720 no not really. head can point to null (empty list)
@claesboillot51383 жыл бұрын
@@theendurance its passing the node itself not the pointer of a linked list struct, and a null node would be invalid here
@@clem Tourist will be like "I have 7 gold medals in code jam . So ask your question and watch my screen casts , rather than wasting my time". Anyway, i don't think Gennedy would ever say that.
@kimayapanash89984 жыл бұрын
I think we are gonna get a new worker for algo expert 😁
@clem4 жыл бұрын
👀
@BehruzbekOtayev4 жыл бұрын
Can you do the round two please? With more difficult questions??? Would love to see Ben grind
@Abhishek-dp5tc4 жыл бұрын
Damn I never thought inverting a binary tree is that easy
@clem4 жыл бұрын
I don't know why everyone makes it out to be so scary or difficult! It really isn't!
@KayronDeacon4 жыл бұрын
Because it sounds like you're flipping it vertically not horizontally.
@adilnawaz53464 жыл бұрын
@@KayronDeacon yess.
@Abhishek-dp5tc4 жыл бұрын
@@clem Because of the ad, lol. I watch that ad like 30 times a day.
@zss1234567894 жыл бұрын
@@KayronDeacon yeah when I first heard it I thought it was head as input, but an array of leaf nodes or something as output, and you have to reverse the connection, so the original left child will now have its parent as its right child.
@petyoruzhin71914 жыл бұрын
Im subscribed to both and am happy to finally see you two in action. Had fun watching this and the one on Ben's channel! Cannot wait for the follow up videos on both sides. xD
@dinckelman4 жыл бұрын
Oddly enough, this is a lot like my recent interviews went, minus the fact that I had a white background google drive instead of an ide. My interviewer also asked me weird questions and then got both of confused for half an hour c:
@bzygauksei2 жыл бұрын
And how did they go
@MrZeffy3 жыл бұрын
I started watching this video and i got so lost in it that i didn't feel that it was 28 fuckin minutes long... Amazing one🔥❤️
@elirannissani9144 жыл бұрын
Bro you just have to ask the channel "The cherno" to do a google coding interview!
@OhhHeMad4 жыл бұрын
that dude would kill it. The guy is wicked smart
@glenn87812 жыл бұрын
using Python made inverting the binary tree a lot easier.. I'm a medium level coder and it took me about 45 mins to come up with the recursive logic and code the same in Java.
@satyafariz85872 жыл бұрын
i love how the algoexpert guy just smiles all the time
@BlockCylinder4 жыл бұрын
I really enjoyed this video but I don't believe Ben can simulate a legit technical interview. He didn't take this seriously at all. I'd really love to see a mock interview with a recent Fullstack graduate.
@avadhut3253 жыл бұрын
This was fun. Really looking forward to the next interview with Ben.
@Furiac. Жыл бұрын
this was fun, one of those easy questions that just takes some examples to run through and get it down
@ShubhamSinghYoutube4 жыл бұрын
Hey Clement, Pls make a playlist of your Mock Programming interview questions. Thank you in advance.
@EvanTempleton4 жыл бұрын
@17:29 Clément exhibiting God-tier restraint :)
@AhsanKhan-es7xg4 жыл бұрын
what's the hardest thing in the world? Ben: AngularJS
@suushi-baked3 жыл бұрын
I don't know why but this video hyped me up to practice my programming!
@Remy2Stronk4 жыл бұрын
What I would have done is found the middle most index, then Create an array with indexes = to the previous one Find distance from middleIndex to each point in the list If currentIndex < middleIndex then add 2 x difference from currentIndex to middleIndex If currentIndex > middleIndex then subtract 2 x different from currentIndex to middleIndex Take those values from the first array, then shove them in the index in the new array that we got from the previous equation, iterated thru the entire first array
@pant13713 жыл бұрын
too much complexity
@Remy2Stronk3 жыл бұрын
@@pant1371 i don't know how else to solve it haha
@pant13713 жыл бұрын
@@Remy2Stronk that's how i did it on C: struct Node* reverseList(struct Node* head) { struct Node* prev = head; struct Node* curr = head->next; struct Node* tmp1 = prev; struct Node* tmp2 = curr; int i=0; while (curr!=NULL) { tmp1=curr; tmp2=curr->next; curr->next=prev; if (i==0){ prev->next=NULL; } i=i+1; prev=tmp1; curr=tmp2; } return prev; }
@Remy2Stronk3 жыл бұрын
@@pant1371 isn't that kind of just a recursive method but does the same thing?
@pant13713 жыл бұрын
@@Remy2Stronk it does the same thing but wirhout the complexity of creating a new array/list,which is not allowed either way(according to the rules of the exercise)
@Nikhil-eg9zc4 жыл бұрын
Man I really miss those sick card trick intros
@aarushiagarwal8938 Жыл бұрын
I just loved the video ❤❤ the interview was too cool to be called as an interview 😊
@4619325703 жыл бұрын
I feel like he legit searched the answer to invert binary tree before hand. He struggled a little much for reversing a linked list
@stefonsimmons6514 жыл бұрын
Yes. Please. Let's see the google interview!
@MsLemons124 жыл бұрын
you guys seem like you've been friends your entire lives lol
@discretelycontinuous20594 жыл бұрын
Wheras Clement has created a platform for training people to crunch through these thoes of interview questions (and has hired tim to help him with it), wheras Ben questions the relevance of the practice. It would be interesting to hear them discuss / debate the relative advantages and disadvantages of coding interviews
@AndrewDaniele873 жыл бұрын
@@discretelycontinuous2059 I want to see this!
@TruthSeekerClub3 жыл бұрын
I never inverted a binary tree before. paused the video and solved it and continue to watch. I came up with the same solution
@roshanmhatre88104 жыл бұрын
Your videos are so awesome, funny and at the same knowledgeable ❤️ Please make more Google coding Interviews @AlgoExpert Guy
@kuei-chinhuang8154 жыл бұрын
Absolutely love this video!!!! Look forward to you guys making the next one 🤩
@Meridian-lk2fo3 жыл бұрын
I've only been in Computer Science at school for three months, so all of this is well over my head, but it's fascinating to watch anyway.
@saranyaghosh20033 жыл бұрын
Same bro same
@Joshuahendrix4 жыл бұрын
Thanks for this, these videos have definitely upped my confidence in my own abilities so I appreciate you guys!
@ezpz4633 жыл бұрын
Ben throwing shade on clem every now and then ;)
@Hgh383 жыл бұрын
My dream interview question. I did cry if I get this question.
@pant13713 жыл бұрын
unless they ask you to do it on C. Using pass by reference..
@yGKeKe2 жыл бұрын
Oh snap, finally a question I actually saw in algorithms class.
@danielbostwick29753 жыл бұрын
Recursion is our friend here. Pop off the head, reverse the rest (recursively), append the original head. Return :) To preserve the original llist, do the same but loop through reverse(head.rest) as another variable, then append head.first as a separate link on the end. Return :)
@sapito5154 жыл бұрын
I'd love to see a legitimate interview!
@harispapadopoulos42954 жыл бұрын
I didn’t get notified for the video but it popped on my recommendations. I guess where the notifications fail the all mighty KZbin algorithm is there to save the day. Also, what did you main back in the days you were playing Overwatch ? YoE: -1 TC:0K/ Year
@clem4 жыл бұрын
Thank goodness for the KZbin algorithm. And I mained Mei, believe it or not. YoE: 3.5 TC: over 9000
@rareshika4 жыл бұрын
@@clem you should do a video where you play Overwatch, btw I am a 14 yo romanian who loves your content
@DiogoVazTavares4 жыл бұрын
Ok! Now I wanna see Ben go thought a real intreview! :D
@jaySosa12604 жыл бұрын
Damn, never knew inverting a binary tree was that simple
@Learn_with_cosmos3 жыл бұрын
Your videos are all over the internet. I had to subscribe this time, :)
@winuxworx Жыл бұрын
inverted binary should be reversing all the numbers where head now points to the last record which is the highest number and the last record at the bottom should be pointing to 1. This binary tree problem is instead called flipping the left and right nodes of a binary tree
@sajidrsheikh4 жыл бұрын
So that's reversing binary tree, I used to think, I had to move head node to bottom. My whole life was a lie 😑
@venuvenu27194 жыл бұрын
Yeah , a great developer couldnt crack this question in google interview.
@codearabawy4 жыл бұрын
Hahaha!
@utkarshmaurya68774 жыл бұрын
They should call it Mirroring the Binary Tree...when they say Invert a Binary Tree...I thought same as you..😂
@ChristopherRockhill3 жыл бұрын
Same
@Valhallaeiru4 жыл бұрын
We have done this exercise so many times in class, during my second year, that as soon as I saw this my brain went "OH NO! What if I've always solved it the wrong way?!"
@user-qy6tu9ip9v3 жыл бұрын
I don't understand any of this.....
@doublesid13954 жыл бұрын
these questions getting easier and easier
@dukeofminecraft2 жыл бұрын
I feel like the way Ben interview is really good, he acts clueless and really plays up the fact that he’s using his problem solving skills. Then again he could actually just be clueless with good problem solving skills lol
@ye4us3 ай бұрын
As someone new to programming, reversing linked lists still feels worlds away lol. Practice makes permanent i guess
@tijanisylla13482 жыл бұрын
This is really fun !! I totally agree that the Py indentation is over whelming lol. Thank you guys for the video !
@dvlpr2 жыл бұрын
I can't track what he's doing but this is already my favorite interview lol
@KOxArtist23 жыл бұрын
i feel like Clement didn't contribute to any of the content here. where's the feedback, where's the review, where's the alternate solutions?
@fafamnzm4 жыл бұрын
yeeeaaaaah, let's do that!!! let's do the full interview for Mr. ben
@bobaashenvale39683 жыл бұрын
Yes please, do the legitimate google interview with Ben Awad!
@Jambajakumba4 жыл бұрын
Let's get that interview!!!!!
@TheSocialDeveloper4 жыл бұрын
I heard they’re adding ACT/SATs to their interviews now
@lagon78303 жыл бұрын
Plans changed in the past 5 months. You now have to design a commercial airliner from scratch to work for most companies.
@TheSocialDeveloper3 жыл бұрын
@@lagon7830 That makes sense!
@Charger2853 жыл бұрын
We need another Ben awad X Clement video. Seriously
@blazi_04 жыл бұрын
U guys are awesome ! I enjoyed watching the video
@josh1234567892 Жыл бұрын
8:55 "This is what I know I think is right" story of my life lol
@arijitdas75264 жыл бұрын
I've got youtube notification for this video from both channels 😂
@JannisAdmek3 жыл бұрын
24:00: Just a sidenode, in Python you can actually do this: tree.left, tree.right = tree.right, tree.left
@graylagx22804 жыл бұрын
I'm only subscribing because you got Ben to come on your video.
@luckfordnkana31724 жыл бұрын
Why was Clement giggling at Ben when he made a move😅
@amanbaghel14083 жыл бұрын
this is a coolest interview video, 3 nodes create prev, curr, frwd and get job in google😁
@facu55634 жыл бұрын
GREAT video please do a second part!!! Cheers from Arg
@luizcarvalho75974 жыл бұрын
This video was awesome, really. Waiting for the google interview heheh
@adithyaks85844 жыл бұрын
Trust me they don't ask these in interviews now a days. Interviews are mostly complex with DP questions.
@MrRobotUy4 жыл бұрын
Awesome video guys! Thanks!!
@husseintermos42293 жыл бұрын
"So you know how to reverse a linked list" THAT EXACT SAME AD RAN FOR ME BEFORE WATCHING THAT VID
@akashp48634 жыл бұрын
Gotta say this Clement. You're a way better businessman. You made the right choice 🤝