Easy Google Coding Interview With Ben Awad

2020 ж. 19 Қар.
993 817 Рет қаралды

In this video, I conduct an easy Google coding interview with Ben Awad, a software engineer and tech KZheadr. As a Google Software Engineer, I interviewed dozens of candidates. This is an easier version of the type of coding interview that you would get at Google or any other big tech company.
Want to see me get interviewed by Ben Awad? Check out the video we made on his channel: • Beginner React.js Codi...
AlgoExpert: www.algoexpert.io/clem
SystemsExpert: www.systemsexpert.io/clem
My LinkedIn: / clementmihailescu
My Instagram: / clement_mihailescu
My Twitter: / clemmihai
Prepping for coding interviews or systems design interviews? Practice with hundreds of video explanations of popular interview questions and a full-fledged coding workspace on AlgoExpert - www.algoexpert.io - and use the promo code "clem" for a discount on the platform!

Пікірлер
  • 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! kzhead.info/sun/mtKkoqirnGuHfps/bejne.html

    @clem@clem3 жыл бұрын
    • you guys are making awesome content, making software engineering fun

      @sangrambarge7081@sangrambarge70813 жыл бұрын
    • 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...

      @thaer954@thaer9543 жыл бұрын
    • What advice do you have for us foreigners?

      @thaer954@thaer9543 жыл бұрын
    • 😂

      @migueldomingos4570@migueldomingos45703 жыл бұрын
    • kzhead.info/sun/ZqmqmcinnGR_op8/bejne.html

      @poisson6673@poisson66733 жыл бұрын
  • Hey, why does Ben get the easy question!!! I had to suffer through the very hard one for a whole hour 😑

    @TechWithTim@TechWithTim3 жыл бұрын
    • R.I.P

      @rareshika@rareshika3 жыл бұрын
    • coding interviews are truly broken.......it just went brrr

      @devguyahnaf@devguyahnaf3 жыл бұрын
    • Rip

      @dontsubscribetomychannel8619@dontsubscribetomychannel86193 жыл бұрын
    • Hey Tim you can watch the title , it says " Easy interview " And I think you r better than awad in coding 😏😉⚘

      @blazi_0@blazi_03 жыл бұрын
    • but thanks ;)

      @TechWithTim@TechWithTim3 жыл бұрын
  • I imagine this guy saying "idk that's pretty sus" in the actual interview and the google techlead be like "Aight, you in"

    @leonardomorel9412@leonardomorel94123 жыл бұрын
    • AMOGUS KEANU REEVES REDDIT WHOLESOME 100 EPIC GAMER MOMENT GOOGLE APPROVED INTERVIEW

      @ZVEKOfficial@ZVEKOfficial2 жыл бұрын
    • @@ZVEKOfficial ok

      @MBTIMemes@MBTIMemes2 жыл бұрын
    • @@ZVEKOfficial this was 11 months ago, give it a rest brainlet

      @foo3268@foo32682 жыл бұрын
  • Clem : Do you have any questions for us ? Ben : How on earth can you keep using Angular ?

    @GyaneshISHU@GyaneshISHU3 жыл бұрын
  • Clement you should interview more beginners and see their progress in a couple of months. this would be really fun and interesting

    @LuisMorales-yx8di@LuisMorales-yx8di3 жыл бұрын
    • It'll be awesome! 🚀

      @mti2fw@mti2fw3 жыл бұрын
    • calling ben a beginner DAMN

      @list9016@list90162 жыл бұрын
    • @@list9016 bro did you see how much he struggled to reverse a linked list? Clearly a beginner, at least with data structures and algorithms

      @jomalomal@jomalomal2 жыл бұрын
    • ​@@jomalomal these things take practice ,it's nothing magical with them.

      @htdrednaxela96@htdrednaxela96 Жыл бұрын
    • @@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

      @GodofStories@GodofStories Жыл бұрын
  • I love Clement giggling at Ben's every move

    @andrewv8548@andrewv85483 жыл бұрын
    • That's what happens when you interview a natural comedian.

      @clem@clem3 жыл бұрын
    • @@clem ehm👀 do you mean he is a joke?😂😂

      @nomadvagabond1263@nomadvagabond12633 жыл бұрын
    • @@nomadvagabond1263 nope his live is a joke 😂😂😂

      @aryanpuri6192@aryanpuri61923 жыл бұрын
  • 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

    @petyoruzhin7191@petyoruzhin71913 жыл бұрын
  • 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.

    @lucasthorsen784@lucasthorsen7843 жыл бұрын
  • It's kind of fun seeing a master failing a bit in other master's craft. Great video clement.

    @weirdduck4578@weirdduck45783 жыл бұрын
  • There is a video on my Algoexpert ad 😂

    @jonsnow9246@jonsnow92463 жыл бұрын
  • *changes d to D and calls it Big D in a coding interview* Interviewer - HHHHHMMMMMMMM 👀

    @MisraPreetiman@MisraPreetiman3 жыл бұрын
    • tel me the timestamp for when that happened! Please!

      @aryamankukal1056@aryamankukal10563 жыл бұрын
    • @@aryamankukal1056 pretty much at the beginning, first question when he starts commenting the way

      @bingpingbongpong662@bingpingbongpong6623 жыл бұрын
    • Dallas is also referred to as The Big D 😂

      @brewlian11@brewlian113 жыл бұрын
    • @@aryamankukal1056 6:48

      @INKILU@INKILU3 жыл бұрын
    • Finally someone who noticed

      @josephmichel2581@josephmichel25813 жыл бұрын
  • Ben looks so much happier in this video then he does in any of his own.

    @natetate785@natetate7853 жыл бұрын
  • You should interview him for Angular

    @jovanjevtic5311@jovanjevtic53113 жыл бұрын
    • I think Ben would just walk out of that interview and even *rm -rf* the machine he'd be interviewing on.

      @clem@clem3 жыл бұрын
    • Ben hates angular

      @alphacoder3822@alphacoder38223 жыл бұрын
    • I literally want to watch this😂😂

      @dishagupta7446@dishagupta74463 жыл бұрын
    • @@clem hahahahahah

      @notquitehim@notquitehim3 жыл бұрын
    • @@clem 😂😂😂

      @Hannah-ly6ff@Hannah-ly6ff3 жыл бұрын
  • Absolutely love this video!!!! Look forward to you guys making the next one 🤩

    @kuei-chinhuang815@kuei-chinhuang8153 жыл бұрын
  • This was fun. Really looking forward to the next interview with Ben.

    @avadhut325@avadhut3253 жыл бұрын
  • 10/10 would love to see Ben do the actual coding interview. Make him use Angular 👀

    @bonzupippinpaddleopsicopol8094@bonzupippinpaddleopsicopol80943 жыл бұрын
  • 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

    @De4dlyX@De4dlyX3 жыл бұрын
  • Your videos are so awesome, funny and at the same knowledgeable ❤️ Please make more Google coding Interviews @AlgoExpert Guy

    @roshanmhatre8810@roshanmhatre88103 жыл бұрын
  • 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 😂😂

    @killswitch4897@killswitch48973 жыл бұрын
  • best variable name : next_guy xD

    @medaminesfaxi909@medaminesfaxi9093 жыл бұрын
    • next_next_guy next_guys_neighbor_that_asks_for_sugar

      @DasBeatz@DasBeatz3 жыл бұрын
  • Ben is the man. Cool to see the colab!

    @rw5736@rw57363 жыл бұрын
  • Thanks for this, these videos have definitely upped my confidence in my own abilities so I appreciate you guys!

    @Joshuahendrix@Joshuahendrix3 жыл бұрын
  • i thought clement will pull his hair out as soon as awad named a variable "next_guy" :)

    @atifadib@atifadib3 жыл бұрын
    • 😂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!

      @clem@clem3 жыл бұрын
    • Classic Ben Awad though.

      @clem@clem3 жыл бұрын
    • what would be a better name? xD

      @necaton@necaton3 жыл бұрын
    • @@JustTheHighlights Equality!

      @casperes0912@casperes09123 жыл бұрын
    • 😂😂😂😂

      @mostafahana1713@mostafahana17132 жыл бұрын
  • Apart from the actual coding, this guy is just so fun to work with.

    @JayPatel12928@JayPatel129282 жыл бұрын
  • He lost me when he shortened “temp” to “tmp” but left “previous” as “previous

    @Digital963@Digital9633 жыл бұрын
    • 😂😂😂

      @brooksgunn5235@brooksgunn52353 жыл бұрын
    • @@brooksgunn5235 LMAO

      @TheoParis@TheoParis3 жыл бұрын
    • Typo

      @DreaminBig@DreaminBig3 жыл бұрын
  • Can you do the round two please? With more difficult questions??? Would love to see Ben grind

    @BehruzbekOtayev@BehruzbekOtayev3 жыл бұрын
  • 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.

    @anchalpandey9074@anchalpandey9074 Жыл бұрын
  • 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.

    @amirhassan6549@amirhassan65493 жыл бұрын
  • Hey Clement, Pls make a playlist of your Mock Programming interview questions. Thank you in advance.

    @ShubhamSinghYoutube@ShubhamSinghYoutube3 жыл бұрын
  • dude seems so happy and cocky at the same time, couldnt help it but smile all the way through the video

    @dk3153@dk3153 Жыл бұрын
  • 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.

    @danielgigago26@danielgigago262 жыл бұрын
  • "I'm not happy about that naming convention" ohhh Ben I love you for this.

    @geeshta@geeshta3 жыл бұрын
  • 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)

    @toxicass100@toxicass1003 жыл бұрын
  • I don't know why but this video hyped me up to practice my programming!

    @suushi-baked@suushi-baked3 жыл бұрын
  • 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.

    @Saitama-py8dz@Saitama-py8dz3 жыл бұрын
    • 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.

      @danny.golcman6846@danny.golcman684610 ай бұрын
  • I just loved the video ❤❤ the interview was too cool to be called as an interview 😊

    @aarushiagarwal8938@aarushiagarwal89389 ай бұрын
  • Imagine if a very skilled candidate adopted Ben’s skill of typing jk and troll var names and comments

    @mr.mystiks9968@mr.mystiks99683 жыл бұрын
  • 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🔥❤️

    @damankumar3277@damankumar32773 жыл бұрын
  • Ok! Now I wanna see Ben go thought a real intreview! :D

    @DiogoVazTavares@DiogoVazTavares3 жыл бұрын
  • This video was awesome, really. Waiting for the google interview heheh

    @luizcarvalho7597@luizcarvalho75973 жыл бұрын
  • 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.

    @glenn8781@glenn87812 жыл бұрын
  • I forgot how to reverse a linked list after I saw Ben scramble😂

    @Srinivassss1999@Srinivassss19993 жыл бұрын
  • U guys are awesome ! I enjoyed watching the video

    @blazi_0@blazi_03 жыл бұрын
  • 17:21 Ben is not pulling his punches back lol. Roasting about Vim mode in the video 😂

    @blasttrash@blasttrash3 жыл бұрын
  • I am not ready lol. Great video, first video I watch 100%.

    @rogeralexander1539@rogeralexander15393 жыл бұрын
  • this was fun, one of those easy questions that just takes some examples to run through and get it down

    @Furiac.@Furiac.7 ай бұрын
  • This is really fun !! I totally agree that the Py indentation is over whelming lol. Thank you guys for the video !

    @tijanisylla1348@tijanisylla13482 жыл бұрын
  • GREAT video please do a second part!!! Cheers from Arg

    @facu5563@facu55633 жыл бұрын
  • yeeeaaaaah, let's do that!!! let's do the full interview for Mr. ben

    @fafamnzm3126@fafamnzm31263 жыл бұрын
  • Yes please! Another video! Ben and Clem =

    @luisponce3580@luisponce35803 жыл бұрын
  • 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

    @winuxworx@winuxworx Жыл бұрын
  • Dude watching this again after an year or so, watching Ben is still so funny man

    @GodofStories@GodofStories Жыл бұрын
  • Your videos are all over the internet. I had to subscribe this time, :)

    @tabancosmos2235@tabancosmos22352 жыл бұрын
  • Yes. Please. Let's see the google interview!

    @stefonsimmons651@stefonsimmons6513 жыл бұрын
  • 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.

    @adityak1231@adityak12313 жыл бұрын
    • 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).

      @dyanosis@dyanosis Жыл бұрын
    • @@dyanosis it does. The assignment expression has variables passed by values on the right. Try running it for yourself once.

      @adityak1231@adityak1231 Жыл бұрын
  • 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.

    @ISmellCapDog@ISmellCapDog Жыл бұрын
    • I completely over complicated my method compared to his...

      @ISmellCapDog@ISmellCapDog Жыл бұрын
  • Let's get that interview!!!!!

    @Jambajakumba@Jambajakumba3 жыл бұрын
  • q.q.: would it be fine to add a parameter with default value to the function? If so this would be my take: def reverseLinkedList(curr, prev = None) : next = curr.next curr.next = prev if next: return reverseLinkedList(next, curr) return curr If not just add it as an auxiliary function.

    @Oscar1618033@Oscar16180332 жыл бұрын
  • I hope Ben gets the job after countless of interviews lol Great Content. Thanks!!

    @xavierica@xavierica2 жыл бұрын
  • Hey, man, I don't know about you, but I absolutely enjoyed this video. Learned so much!

    @wordonice4457@wordonice44572 жыл бұрын
  • yes part two please!! new sub :)

    @jacoblockwood4034@jacoblockwood40343 жыл бұрын
  • Awesome video guys! Thanks!!

    @MrRobotUy@MrRobotUy3 жыл бұрын
  • i love how the algoexpert guy just smiles all the time

    @satyafariz8587@satyafariz8587 Жыл бұрын
  • I'd love to see a legitimate interview!

    @sapito515@sapito5153 жыл бұрын
  • these questions getting easier and easier

    @doublesid1395@doublesid13953 жыл бұрын
  • I think we are gonna get a new worker for algo expert 😁

    @kimayapanash8998@kimayapanash89983 жыл бұрын
    • 👀

      @clem@clem3 жыл бұрын
  • Oh snap, finally a question I actually saw in algorithms class.

    @yGKeKe@yGKeKe2 жыл бұрын
  • You are great! Following you always 👍👌

    @mnasirizadeh6007@mnasirizadeh60073 жыл бұрын
  • Your previous vedio is of very much knowledge, fun and this is insane plzz both of you kindly upload more vedio like this you with algo ben with react or vue.... Or other framwrks... Hoping your best for future 🙏🙏.. We are Indian we are doing 🙏 rather than 👍🏼,🔥.... ... Plz consider my concern ....🥺

    @yashpurohit509@yashpurohit5093 жыл бұрын
  • 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.

    @TheRaspPie@TheRaspPie3 жыл бұрын
    • The function accepts the head as input, implying that the list has at least one item being the head

      @ayhamboi9720@ayhamboi97202 жыл бұрын
    • @@ayhamboi9720 no not really. head can point to null (empty list)

      @theendurance@theendurance2 жыл бұрын
    • @@theendurance its passing the node itself not the pointer of a linked list struct, and a null node would be invalid here

      @claesboillot5138@claesboillot51382 жыл бұрын
    • @@ayhamboi9720 not correct

      @theJasin@theJasin2 жыл бұрын
  • This was a fun interview video! 👍

    @narutosasuke30@narutosasuke303 жыл бұрын
  • I think that's the first video where I really understood something (beginner programmer problems) =))

    @gherdelescugrigore7601@gherdelescugrigore76013 жыл бұрын
  • 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.

    @BlockCylinder@BlockCylinder3 жыл бұрын
  • 8:55 "This is what I know I think is right" story of my life lol

    @josh1234567892@josh1234567892 Жыл бұрын
  • Great work clem. Best getting your application tested by Ben himself.

    @rahul_bali@rahul_bali3 жыл бұрын
  • Entertaining and fun as always ;)

    @maximemustergirl6458@maximemustergirl64583 жыл бұрын
  • I never inverted a binary tree before. paused the video and solved it and continue to watch. I came up with the same solution

    @TruthSeekerClub@TruthSeekerClub3 жыл бұрын
  • this is a coolest interview video, 3 nodes create prev, curr, frwd and get job in google😁

    @amanbaghel1408@amanbaghel14083 жыл бұрын
  • Your video was really amazing🎉🎉🎉 but I wanted to ask that if we will subscribe to the algo expert then how frequently can I give my mock coding interviews

    @aarushiagarwal8938@aarushiagarwal89389 ай бұрын
  • /*I stopped the video at 12:29 and decided to do it by my own before watching his solution (not sure if it's kind of cheating because I saw a "starting point", although I didn't really based the idea on the solution so far at that point) After between 3-5 minutes I came up with this:*/ (head) curr = head; prev = null; do { next = curr.next; curr.next = prev; prev = curr; curr = next; } while (curr != null); //What do you guys think? //Well, time to keep watching the video, to see what Ben came up with

    @Kenji_195@Kenji_1953 жыл бұрын
  • Yes please, do the legitimate google interview with Ben Awad!

    @bobaashenvale3968@bobaashenvale39683 жыл бұрын
  • I've got youtube notification for this video from both channels 😂

    @arijitdas7526@arijitdas75263 жыл бұрын
  • 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:

    @dinckelman@dinckelman3 жыл бұрын
    • And how did they go

      @bzygauksei@bzygauksei2 жыл бұрын
  • Bring the interview!!

    @luisafonseca6768@luisafonseca67683 жыл бұрын
  • We want part 2, clément

    @chrisdanny5180@chrisdanny51803 жыл бұрын
  • 24:00: Just a sidenode, in Python you can actually do this: tree.left, tree.right = tree.right, tree.left

    @JannisAdmek@JannisAdmek3 жыл бұрын
  • I'm looking forward to a video that you interview a Turing award winner

    @jylong7505@jylong75053 жыл бұрын
  • One thing I don't understand is how you can be using .next outside of the LinkedList class definition without having a "getter" for it. I only see the constructor there.

    @xRoughxGemx@xRoughxGemx3 жыл бұрын
  • I just started learning data structures (just means 2 days). I can do this with O(2n-1) time complexity. Is there any fast algorithm for this.

    @evilmobilegamer1546@evilmobilegamer15463 жыл бұрын
  • You should do a video with Coding Garden, it would be really interesting !

    @franciscoayala6923@franciscoayala69233 жыл бұрын
  • 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

    @jackjohnson7660@jackjohnson7660 Жыл бұрын
    • 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.

      @dyanosis@dyanosis Жыл бұрын
    • ​@@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

      @trampflips101@trampflips1019 ай бұрын
  • Ben throwing shade on clem every now and then ;)

    @ezpz463@ezpz4633 жыл бұрын
  • I didn’t get notified for the video but it popped on my recommendations. I guess where the notifications fail the all mighty KZhead 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

    @harispapadopoulos4295@harispapadopoulos42953 жыл бұрын
    • Thank goodness for the KZhead algorithm. And I mained Mei, believe it or not. YoE: 3.5 TC: over 9000

      @clem@clem3 жыл бұрын
    • @@clem you should do a video where you play Overwatch, btw I am a 14 yo romanian who loves your content

      @rareshika@rareshika3 жыл бұрын
  • Imagine cracking an angular jocks in google coding interview.

    @Shubham-xh9nz@Shubham-xh9nz3 жыл бұрын
  • The chemistry is unmatched.

    @amysheeter877@amysheeter87711 ай бұрын
  • Google coding interview with Tourist when 👀

    @Arcvx@Arcvx3 жыл бұрын
    • I'm down whenever he is!

      @clem@clem3 жыл бұрын
    • @@clem tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist tourist!!!

      @ayubkosimov199@ayubkosimov1993 жыл бұрын
    • I'm waiting for that day!!

      @anirbanchatterjee3023@anirbanchatterjee30233 жыл бұрын
    • torist doesn't give interviews

      @beanlighter9491@beanlighter94913 жыл бұрын
    • @@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.

      @cpwithsundar@cpwithsundar3 жыл бұрын
  • 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 :)

    @danielbostwick2975@danielbostwick29752 жыл бұрын
  • Just want to type out a solution that immediatly came to me when seeing him comment to visualize the problem, Im not sure if its good and too lazy to test it: It just comes from the fact that it doesnt make sense to go from a to None and instead u should just do the opposite path, from None to a: def reverseLinkedList(head): return rec(None, head) rec(previous, current): head = None if current.next != None: head = rec(current, current.next) else head = current current.next = previous return head dont know if it works but sounds good to me

    @soulysouly7253@soulysouly72532 жыл бұрын
  • Holy shit this guy rocked it, made me a fan

    @ynngih725@ynngih725 Жыл бұрын
  • what's the hardest thing in the world? Ben: AngularJS

    @AhsanKhan-es7xg@AhsanKhan-es7xg3 жыл бұрын
KZhead