How to invert a binary tree - in 20 seconds

preview_player
Показать описание
Now you can pass that coding interview no problem #shorts

Рекомендации по теме
Комментарии
Автор

Interviewer: So what are your skills?
le me: I am an advanced Github Copilot user

ipbisleep
Автор

Everyone ask "How to invert a binary tree", but no one ask "Why invert a binary tree?".

tirimut
Автор

invert a binary tree speedrun world record glitchless any %

wr
Автор

How to stackoverflow without go to stackoverflow

bodybody
Автор

"he got us in the first half not gonna lie"

EidosX_
Автор

Thank you so much VS Code, I am now the CEO of Google after acing my interview using this technique

ZVEKOfficial
Автор

Interviewer: "Please, invert a binary tree."
Me: "No problem, close your eyes for a second."

Erezzor
Автор

"How to steal some code that you don't even understand ... in 20 seconds"

peterromancik
Автор

copilot is great if you don't care about open source, it didn't even check for licenses in repos

ember
Автор

*How to Invert a Binary Tree:*
Step 1: Ask the AI Overlords nicely.

misaalanshori
Автор

"Use developers to destroy developers"
- idk maybe microsoft

nabil.hamawi
Автор

I know it's a joke and all but I can't wait till most devs don't understand the simplest of algorithms

javier
Автор

I think this could use some newer syntax, try this:
const invertTree = root => {
if (!root) {return null}
[root.left, root.right] = [root.right, root.left]
invertTree(root.left)
invertTree(root.right)
return root
}

MickenCZProfi
Автор

He really just figured out how to invert a binary tree in constant time 🤯

pokefreak
Автор

Gee thanks, now ill get a job at Amazon!

sumanthramesh
Автор

Sometimes you invert binary tree and sometimes binary tree inverts you..

Akira-shts
Автор

Interviewer: So what are your skills?
le me: I am good at asking nice questions to robots

unknown-yotx
Автор

very interesting that vscode is making these videos so much. good marketing idea

RyanLynch
Автор

the creator of stackoverflow created stackoverflow without the help of stackoverflow

cosmicscience._
Автор

Still not sure how I feel about copilot..

kylemulqueen