CLOSEST BINARY SEARCH TREE VALUE II | LEETCODE # 272 | PYTHON SOLUTION

  Рет қаралды 4,601

Cracking FAANG

Cracking FAANG

Күн бұрын

Пікірлер: 12
@deepankagrawal5353
@deepankagrawal5353 5 ай бұрын
We can also do Inorder traversal to make an array (which will be sorted) and then use two pointers to decide if start is closer than end.
@annlaosun6260
@annlaosun6260 5 ай бұрын
yeah. That is what I am thinking too
@stouser1296
@stouser1296 Ай бұрын
U deserve way more subs
@rsKayiira
@rsKayiira 2 жыл бұрын
Great video. I wish you had a video for question Closest Binary Search tree Value LC 270 as well. Doing it in optimal time isn't easy
@alibeccio
@alibeccio 7 ай бұрын
It's a BST, bro. When you are required to find a number in a BST, just use binary search.
@vigneshsivashanmugam531
@vigneshsivashanmugam531 2 жыл бұрын
Really you are doing great. Keep up the work. Expecting lot more content from you. I would suggest you to take unique variety of problems(which we might missed to explore) in different topics along with repeatedly asked questions. Also as a future suggestion, you can have a simple dry run(1-2 mins) with example case before you code. Again saying ,you're doing great.
@crackfaang
@crackfaang 2 жыл бұрын
In a real interview I most certainly would and I actually tell people to do this as part of my algorithm for answering any interview question. Unfortunately I see the video analytics for these videos and most people just skip to the code so it’s not a good use of my time to dry run it. Anyone who wishes to do so can do it on their own time
@kgdev3525
@kgdev3525 2 жыл бұрын
"I don't waste my time with this type of nonsense "😂😂😂 , Love your content bro
@crackfaang
@crackfaang 2 жыл бұрын
Haha I call it how it is. No need to bullshit you guys 😂
@alibeccio
@alibeccio 7 ай бұрын
What about the follow up sir? It said to solve it in less than O(n) runtime.
@subee128
@subee128 10 ай бұрын
Thank you so much
@sharathkumar8338
@sharathkumar8338 2 жыл бұрын
Hi Cracking FAANG hope you are doing well. Could you please upload videos on heaps and hashmaps?? i'm kind of weak in those concepts. I have solved more problems on trees and linkedList so far. So trying to focus more on graphs, heaps and hashmaps. In addition to amazon could not even clear first round of samsung R & D 🥲.
LARGEST BST SUBSTREE | LEETCODE # 333 | PYTHON POSTORDER DFS SOLUTION
16:28
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 133 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 8 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 834 М.
LOWEST COMMON ANCESTOR OF A BINARY TREE III [PYTHON]
16:38
Cracking FAANG
Рет қаралды 12 М.
WALLS AND GATES | LEETCODE # 286 | PYTHON BFS SOLUTION
15:09
Cracking FAANG
Рет қаралды 1,6 М.
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 897 М.
LOWEST COMMON ANCESTOR OF A BINARY TREE II | PYTHON | LEETCODE 1644
20:46
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 351 М.
Binary Search Tree Iterator - Leetcode 173 - Python
12:47
NeetCode
Рет қаралды 42 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН