Комментарии:
sure python indentation system sucks, at least they could use something like end lol
Ответитьgreat camel case
Ответитьthey both are smiling thorught the video
ОтветитьI just loved the video ❤❤ the interview was too cool to be called as an interview 😊
Ответить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
ОтветитьMIRROR a tree god dammm it… not invert it…
ОтветитьThe chemistry is unmatched.
Ответитьwhy can't they just stack it in another linked list :_)
ОтветитьWhy dont you adjust your mouth bro
ОтветитьDude watching this again after an year or so, watching Ben is still so funny man
ОтветитьDo you even need to do "right = tree.right"? You're only needing to worry about how tree.left is going to be overridden first. So you could save a small amount of memory by not creating a new variable and instead changing "tree.left = right" to "tree.left = tree.right"
ОтветитьClassic dev failures - defines a variable that is never used (looking at you, new_head)
ОтветитьBens shit talking is hilarious
Ответить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
Algoexpert do not care about resolving product issues. Their website shows huge icon on Safari browser and in reply, they only say we don't reply but we surely read your mails. In reality they don't have anyone working on their product anymore. Completely avoid paying as there is no refund at all.
ОтветитьGosh, what a train wreck
Ответитьin python, doesnt this swap elements?:
a,b = b,a
Isn't it's very easy questions for any product based company.
Ответитьwait so a binary tree inversion is literally just a temp swap??? wtf why is it considered hard then??
ОтветитьCan java data structures land a job there?
ОтветитьPlease we want a legit Google Interview
Ответитьdude seems so happy and cocky at the same time, couldnt help it but smile all the way through the video
Ответитьmy coding is better than him
ОтветитьI wish the computer would have crashed during this “interview” 1listening to these two smug tech bros is infuriating and frankly who gives a F.
Ответитьrecursive solution to inverting a linked list:
public node reverse(node current)
{
node root;
if(current.getNext() != null)
{
root = reverse(current.getNext());
current.getNext().setNext(current);
current.setNext(null);
}
else
{
root = current;
}
return root;
}
written in c#, node has an integer payload, and a node next
I got reverse a binary tree from a very senior person when I interviewed at Microsoft straight out of college. Ha.
ОтветитьLine 7 the word again is spelled wrong!!! LOL
ОтветитьWoah woah woah, you watch yourself about pythonic indents SIR! Jkjk nice job!
Ответитьdfv lol
ОтветитьWeakest algo enjoyer vs strongest front dev
ОтветитьCan we use stack in the first question?
ОтветитьHoly shit this guy rocked it, made me a fan
ОтветитьI can't track what he's doing but this is already my favorite interview lol
Ответитьclement is annoying and smug. hes not a narccicist, but he has that inflated ego vibe
Ответить"Weak Minded" says the guy who could barely reverse a linked list lmao
Ответить"I can turn on vim mode, right?" Me all the time.
Ответить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
Ответить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.
ОтветитьBen, you're a genius ))
ОтветитьI am a fan of Ben, but there is a more efficient way to reverse a list. Ben declared too many variables, and making it not efficient.
Ответить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.
ОтветитьI'm so happy i can reverse a linkedlist 🤣🤣
ОтветитьIt should be my Google question
Ответить