Check if a Parentheses String Can Be Valid | Leetcode 2116

  Рет қаралды 6,379

Techdose

Techdose

Күн бұрын

Пікірлер: 34
@rajnandini9862
@rajnandini9862 21 күн бұрын
very well explained. I was stuck in so many if else conditions based on wildcard , opening, closing. But your explanation made it easy to understand. Thank you sir!!
@techdose4u
@techdose4u 19 күн бұрын
nice :)
@VishyAnand-s5e
@VishyAnand-s5e 21 күн бұрын
Excellent explanation sir. Really understood it well!! Thanks a lot!
@techdose4u
@techdose4u 21 күн бұрын
Nice :)
@vedantzawar5218
@vedantzawar5218 21 күн бұрын
Very easy solution ! Well explained sir !
@techdose4u
@techdose4u 21 күн бұрын
Thanks :)☺️
@SumeetYadav-u7s
@SumeetYadav-u7s 21 күн бұрын
excellent solution
@techdose4u
@techdose4u 21 күн бұрын
Thanks :)
@programming6177
@programming6177 20 күн бұрын
thank you so much bro awasome teaching🤗🤗
@techdose4u
@techdose4u 20 күн бұрын
welcome :)
@Abhishek-e6d2c
@Abhishek-e6d2c 20 күн бұрын
loved it!!
@techdose4u
@techdose4u 20 күн бұрын
great :)
@mani2632
@mani2632 20 күн бұрын
well explained sir, thank you
@techdose4u
@techdose4u 20 күн бұрын
You are welcome
@drain1635
@drain1635 21 күн бұрын
Thank you
@duongducanh206
@duongducanh206 20 күн бұрын
What is the software that you use to draw here? Appreciate it uf you can share
@АлександрЮшкевич-ц7ь
@АлександрЮшкевич-ц7ь 20 күн бұрын
Thank you very much for the solution. It's easy but the problem has so low acceptance rate.
@techdose4u
@techdose4u 20 күн бұрын
coz of wild cards :)
@mdnoverflow
@mdnoverflow 12 күн бұрын
best
@techdose4u
@techdose4u 12 күн бұрын
thanks :)
@Anbu-x2k
@Anbu-x2k 20 күн бұрын
i don't know why single pass is not enough can anyone explain plz...
@techdose4u
@techdose4u 20 күн бұрын
coz in single pass you can only know about wild cards on left NOT about right. Finding imbalance is not enough for this problem. Wild cards can be used to balance it :)
@Anbu-x2k
@Anbu-x2k 20 күн бұрын
@@techdose4u thank you for your response
@godFather-123-b8g
@godFather-123-b8g 21 күн бұрын
did you take offline classes somewhere?
@techdose4u
@techdose4u 19 күн бұрын
Yes from class 6th I am teaching JEE prep in College Coding Since masters :)
@AbhinavGavade
@AbhinavGavade 21 күн бұрын
this question was marked as Medium by leetcode but it was Hard !
@techdose4u
@techdose4u 19 күн бұрын
Yea it has prerequisite questions. As mentioned at beginning, if you solved them then its medium else Hard for someone new to
@HeroicVampire
@HeroicVampire 21 күн бұрын
i dont understand first your voice is not clear then you are not telling clearly about what steps you are doing.. you just like blindly reading
@techdose4u
@techdose4u 21 күн бұрын
Do you mean the question ? Your feedback is appreciated.
@AMANKUMAR-rz3fu
@AMANKUMAR-rz3fu 21 күн бұрын
Great soln. Pls be a little slower sir. Tnx
@techdose4u
@techdose4u 19 күн бұрын
I was actually expecting the Valid Parenthesis to be known before solving this, otherwise this question will be hard to solve :)
@BholaSingh-m8z
@BholaSingh-m8z 21 күн бұрын
I couldn't understand much; everything went over my head. Your teaching pace is very fast. It would be great if you could simplify the explanation and make it more beginner-friendly.
@neerajgarg9096
@neerajgarg9096 21 күн бұрын
simple consider we go with 2 pass solution: class Solution { public boolean canBeValid(String s, String locked) { int n = s.length(); //odd length return false if(n%2!=0){ return false; } int openingbBracket=0,closingBracket=0,wildCount=0; for(int i=0; i
@techdose4u
@techdose4u 21 күн бұрын
You can watch Valid Parenthesis problem :) This is a harder problem from the rest which I had mentioned.
Valid parenthesis string | Leetcode #678
12:41
Techdose
Рет қаралды 53 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Maximum Employees to Be Invited to a Meeting | Leetcode 2127
52:53
Bellman Ford Algorithm
17:51
Techdose
Рет қаралды 58 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 246 М.
L11. Valid Parenthesis String | Multiple Approaches
26:09
take U forward
Рет қаралды 62 М.
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 137 М.
Check if Array Is Sorted and Rotated | Leetcode 1752
15:11
Valid Parenthesis String - Leetcode 678 - Python
13:43
NeetCode
Рет қаралды 79 М.