Check if a Parentheses String Can Be Valid | Leetcode 2116

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

Techdose

Techdose

Күн бұрын

Пікірлер: 34
@rajnandini9862
@rajnandini9862 14 күн бұрын
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 12 күн бұрын
nice :)
@vedantzawar5218
@vedantzawar5218 14 күн бұрын
Very easy solution ! Well explained sir !
@techdose4u
@techdose4u 14 күн бұрын
Thanks :)☺️
@VishyAnand-s5e
@VishyAnand-s5e 14 күн бұрын
Excellent explanation sir. Really understood it well!! Thanks a lot!
@techdose4u
@techdose4u 14 күн бұрын
Nice :)
@SumeetYadav-u7s
@SumeetYadav-u7s 14 күн бұрын
excellent solution
@techdose4u
@techdose4u 14 күн бұрын
Thanks :)
@drain1635
@drain1635 14 күн бұрын
Thank you
@duongducanh206
@duongducanh206 13 күн бұрын
What is the software that you use to draw here? Appreciate it uf you can share
@programming6177
@programming6177 13 күн бұрын
thank you so much bro awasome teaching🤗🤗
@techdose4u
@techdose4u 13 күн бұрын
welcome :)
@Abhishek-e6d2c
@Abhishek-e6d2c 13 күн бұрын
loved it!!
@techdose4u
@techdose4u 13 күн бұрын
great :)
@mani2632
@mani2632 13 күн бұрын
well explained sir, thank you
@techdose4u
@techdose4u 13 күн бұрын
You are welcome
@АлександрЮшкевич-ц7ь
@АлександрЮшкевич-ц7ь 13 күн бұрын
Thank you very much for the solution. It's easy but the problem has so low acceptance rate.
@techdose4u
@techdose4u 13 күн бұрын
coz of wild cards :)
@godFather-123-b8g
@godFather-123-b8g 14 күн бұрын
did you take offline classes somewhere?
@techdose4u
@techdose4u 12 күн бұрын
Yes from class 6th I am teaching JEE prep in College Coding Since masters :)
@Anbu-x2k
@Anbu-x2k 13 күн бұрын
i don't know why single pass is not enough can anyone explain plz...
@techdose4u
@techdose4u 13 күн бұрын
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 13 күн бұрын
@@techdose4u thank you for your response
@mdnoverflow
@mdnoverflow 5 күн бұрын
best
@techdose4u
@techdose4u 5 күн бұрын
thanks :)
@AbhinavGavade
@AbhinavGavade 14 күн бұрын
this question was marked as Medium by leetcode but it was Hard !
@techdose4u
@techdose4u 12 күн бұрын
Yea it has prerequisite questions. As mentioned at beginning, if you solved them then its medium else Hard for someone new to
@HeroicVampire
@HeroicVampire 14 күн бұрын
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 14 күн бұрын
Do you mean the question ? Your feedback is appreciated.
@AMANKUMAR-rz3fu
@AMANKUMAR-rz3fu 14 күн бұрын
Great soln. Pls be a little slower sir. Tnx
@techdose4u
@techdose4u 12 күн бұрын
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 14 күн бұрын
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 14 күн бұрын
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 14 күн бұрын
You can watch Valid Parenthesis problem :) This is a harder problem from the rest which I had mentioned.
Maximum Employees to Be Invited to a Meeting | Leetcode 2127
52:53
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Grid Game | Leetcode 2017
21:51
Techdose
Рет қаралды 7 М.
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 123 М.
L11. Valid Parenthesis String | Multiple Approaches
26:09
take U forward
Рет қаралды 60 М.
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 30 МЛН
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 250 М.
Word Subsets | Leetcode 916
13:24
Techdose
Рет қаралды 4,4 М.
FASTER JavaScript In 2025 With Sets
13:13
Jack Herrington
Рет қаралды 26 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 913 М.
Trapping Rain Water II | Leetcode 407
31:10
Techdose
Рет қаралды 7 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН