FACEBOOKS #1 INTERVIEW QUESTION (2022) - MINIMUM REMOVE TO MAKE VALID PARENTHESIS [PYTHON]

  Рет қаралды 5,873

Cracking FAANG

Cracking FAANG

Күн бұрын

Пікірлер: 12
@YT.Nikolay
@YT.Nikolay 2 жыл бұрын
I could not solve it when I saw this problem 1st time, I am proud that today I cracked this problem before watching your video. Thanks for posting videos, your content definitely helps me to progress!
@crackfaang
@crackfaang 2 жыл бұрын
Sometimes it’s like that. I can’t tell you how many solutions I had to look at and videos to watch before things started clicking for me. I think as long as you understand how/why a solution works, there’s no problem looking at it if you are stuck. It’s just important to learn it so that when you inevitably come across another similar question, you can apply what you learned
@YT.Nikolay
@YT.Nikolay 2 жыл бұрын
@@crackfaang I watch your videos till the end because: want to be sure my solution is optimal, 2nd watched to the end counter +=1 :)
@TheBIKEDEALZ
@TheBIKEDEALZ 8 ай бұрын
had this question in Amazon automation position, but failed to do it - thanks for your explanation.
@sagarpanwar2724
@sagarpanwar2724 10 ай бұрын
Why can’t you have a stack : push when you see ‘(‘ pop when you see’)’ if there is nothing to pop then the remaining ‘)’ are to be removed. Store the indices of ‘)’ and return the string without them. Any thing wrong with this approach?
@ketulshah5462
@ketulshah5462 6 ай бұрын
I have same question.
@cfbf96
@cfbf96 6 ай бұрын
you can, but in the interview they often ask you to solve without a stack
@shuier525
@shuier525 9 ай бұрын
I feel the last several lines "elif cur_char == ")" res.append(cur_char)else:res.append(cur_char)" can be simply combined to "else:res.append(cur_char)"
@rezaafra9785
@rezaafra9785 8 ай бұрын
Excellent Explanation
@rsKayiira
@rsKayiira 2 жыл бұрын
Great video, we need more of these!!
@charliebitme-zb3nv
@charliebitme-zb3nv 9 ай бұрын
lovely explanation
VALID PALINDROME - SOLUTION EXPLAINED [PYTHON] | LEETCODE 125
9:57
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 5 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 133 МЛН
VALID PALINDROME II [PYTHON]
11:45
Cracking FAANG
Рет қаралды 1,5 М.
LOWEST COMMON ANCESTOR OF A BINARY TREE II | PYTHON | LEETCODE 1644
20:46
MINIMUM ADD TO MAKE PARENTHESIS VALID | PYTHON | LEETCODE # 921
9:49
you will never ask about pointers again after watching this video
8:03
LeetCode 1249. Minimum Remove to Make Valid Parentheses
8:57
Nick White
Рет қаралды 33 М.
DOT PRODUCT OF TWO SPARSE VECTORS - 3 SOLUTIONS EXPLAINED [PYTHON]
31:06
LOWEST COMMON ANCESTOR OF A BINARY TREE III [PYTHON]
16:38
Cracking FAANG
Рет қаралды 12 М.
LeetCode is a JOKE with This ONE WEIRD TRICK
4:54
AlgoMonster
Рет қаралды 89 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33