Is this a common practice in USA? Never seen that in Europe for software engineers. What of you couldn't solve it?
@johnanderson29013 сағат бұрын
There is *indeed* a bug in this solution. Consider the scenario where the given binary search tree did not contain the node with value 25, and the input node was the node with value 20 (the root node). In this case, the program would crash on line 48 due to dereferencing a null pointer. Namely, parent is null, so parent.right will crash. The solution is to replace the code from lines 48 through 56 with the following code: while (parent != null && parent.right == child) { child = parent; parent = parent.parent; } return parent; Note, the only changes are (1) the condition of the while loop, and (2) the removal of the if condition.
@andresramirez4469Күн бұрын
after studying and learning to code for 3 years. I never had 1 white board problem at an interview
@mahler666Күн бұрын
When the interviewer challenges an interviewee with a question that has been challenging for himself for a while!! not a good idea!!
@Yena_3942 күн бұрын
in your life. you never going to use it. and this is kid game
@olivezoo2 күн бұрын
可惜。這個例子舉得不好。
@thesadanand65993 күн бұрын
one year waiting period.... oh thats a gross
@acess1st4 күн бұрын
really good explanation, saved a lot of time!
@cappuchino_creations5 күн бұрын
This Video was indeed very helpful. I finally understood all the principles!!
@BricePash5 күн бұрын
Space complexity is 0(1) dear lord yall.
@pzmt80516 күн бұрын
parent class/ children class; super class/ sub class;
@billybaloop6 күн бұрын
I know the STAR method says to state the Situation first, but I feel like you could put ahead off of it the summary: "I moved everyone to vue.js", or "I broke an app." Helps to follow the story
@nikhilsharma-bj3jw6 күн бұрын
I have been part of AWS interview and not Google's. Let me tell you, AWS will still definitely beat Google in being the most stupidest process, horrendous, mind boggling, and to simply sum up - Didn't make any sense at all for me.
@GravityFalloutPines6 күн бұрын
Although it's impossible - I can see the goal of tech questions trying to gauge where you are in your coding skills. If there are 25 core concepts to coding, then perhaps try to ask a tech question (or even better - questionS) that touches all these concepts
@hanif36616 күн бұрын
fakeo
@Coinsandtokenz6 күн бұрын
Great tuts !
@nithish52967 күн бұрын
The job market is super tough right now in 2024-2025 people now a days are not asking these kinds of question anymore 🥹🥲
@1nifier7 күн бұрын
Yup, coding is not for me.
@chorfaissam92947 күн бұрын
This type of interview can provide insight into how a candidate thinks about and solves problems. However, in real life, it's unlikely that you'll write something like this, as most of our work involves implementing commercial products with maximum efficiency. Additionally, with advancements in AI pushing the boundaries further, the interview should also assess soft skills. I wouldn't hire someone who is excellent at algorithmic coding but incapable of creating practical solutions for my company.
@joshpack7 күн бұрын
Fake video interview btw.
@DoodlebobEdits7 күн бұрын
Lmao my director told me exactly why as a high level coder he doesn’t do this shit to people he interviews.. it’s pointless and says nothing about the quality of work the candidate is capable of.
@velozdrums8 күн бұрын
props to you brother, you gave it your best!
@futurexa8 күн бұрын
This was an amazing recap, thank you very much
@ManKiros9 күн бұрын
Nowadays, in 99% of the jobs, the most useless coding interview you will never see
@ironmonkey19909 күн бұрын
thank you!
@davejackson889 күн бұрын
gonna learn Java
@sumitavdash942110 күн бұрын
I can solve this question in best time complexity through single while loop iteration
@anurodhchoudhary168911 күн бұрын
If you can, try to use a complicated/challenging story (make sure that you're able to explain it in a clear and concise way) this will impress the interviewer. For big companies simple stories might not work. The bar is quite high! I would recommend be prepared with 5 complex and 5 simple stories. Cheers!!!
@markspindler532111 күн бұрын
Great video.
@olivezoo11 күн бұрын
teacher, may I know why u name your 1st java file name as "main.java" not "classname"?
@nhowie850312 күн бұрын
Thank you I'm coding even I'm a kid just need to understand. Thanks I'm starting tomorrow 😅😅😊
@Notlucky.official12 күн бұрын
He didn’t put one of the best ones (brilliant)
@mntwana6412 күн бұрын
well explained
@biskolobiskun12 күн бұрын
Scratch
@jjlarochelle252313 күн бұрын
Thank you, I was thinking about these questions totally wrong until watching this video. I was thinking of code, tech, minute details, features. But u made me realize there's a lot more to talk about.
@olivezoo13 күн бұрын
Was it must to name your first file "main.java"?
@anikethsahu713014 күн бұрын
I might be wrong, but isnt just a simple inorder traversal can make it work.
@annakelley751314 күн бұрын
Great short!
@olivezoo15 күн бұрын
i guess : public and static have something to do with OOP's features such abstract and polymorphism. Am i right?
@Cheebton16 күн бұрын
honestly, when it comes to ease, learning with the big 3: html, css javascript was how I started out.
@olivezoo16 күн бұрын
btw "void" also
@olivezoo16 күн бұрын
@Dear teacher: u forgot to address what "static" and "public " are for ?
@AshishCE-i3r17 күн бұрын
Thanks so so informative
@Vineeth_Shankar17 күн бұрын
I got confused who is the interviewer and who is the interviewee 😂
@looookman17 күн бұрын
You just need a recursive function to "parcours" the tree and add the greater nodes to an array, then select the smallest node from the array... "et voila!"
@rudhresh554718 күн бұрын
Bro is spending his whole savings to code that Bubble Sort.
@DalandanReal19 күн бұрын
Damn after i burn my brain i understand some of stream concepts
@salisali-h5f19 күн бұрын
This is a nonsense question! You almost never encounter such problems in real-life development unless you're working on something as specific as building a new programming language. Most programming environments already provide abstractions for these kinds of issues! It’s unreasonable to eliminate a developer just because they didn’t pass this test.
@ragavendiranbalasubramania706519 күн бұрын
From my experience working with AOSP and developing drivers for Android, I don't forsee Google stopping support for Java there is a hell lot of java nightmare inside the android OS, Moving them to a new language will result in developer hell.