@@utkarshgupta9858 Problem a Is this string ((((?) a regular sequence plz answer
@sihabsahariar3 жыл бұрын
@@arunmalik6592 No it is not. But your test case doesn’t match the condition. ( and ) will be used in the test case for single time.
@arunmalik65923 жыл бұрын
@@sihabsahariar Thanks bro for clearing doubt
@ratneshtiwary96073 жыл бұрын
I love watching ur cast man!
@priyanshagarwal20953 жыл бұрын
thank so much for this brother and for problem D 1 2 3 4 5 6 7 8 .......n as you say will convert n to 1 by using 8 now covert 8 to 1 by just using 2 (not by 4 and then 2) it works for me
@utkarshgupta98583 жыл бұрын
Oh yeah n-4 + 6 + 3 = n+5, it would've worked... I didn't think of it during the contest
@ParitoshPotukuchi3 жыл бұрын
Thanks a lot for B. I really understood the logic. Is this called prefix sums, beacuse I have heard this term used everywhere. Great that I came across your channel!
@saitarund16173 жыл бұрын
I'm up solving atleast 1 problem after understanding your solutions.I hope you will be providing solutions for upcoming contests as well.Thanks bro :)
@RifatulIslam__3 жыл бұрын
Great explanation man💚💚💚
@arvindpatel123 жыл бұрын
Please one video on Sublime Text setup for CP for fast testcase run
@amitkumaryadav72402 жыл бұрын
What is happening in this case )?(? It will give yes But ans should be no
@aniketdubey73633 жыл бұрын
Thanks for the stream sir Sir how you come up with intuition so quick ?
@abdurrahmansikdernayan59943 жыл бұрын
" ?))) " is it possible to obtain RBS? your code is giving answer "yes". But how? ( A. Regular Bracket Sequence)
@vamsiksk9123 жыл бұрын
Question says exactly one ( and )
@uklukl47383 жыл бұрын
Please explain Question E
@adityaraj52003 жыл бұрын
Wait Wait! How about this one: ( ( ( ( ( ? ? ) in this testcase, we have 5 '(' at front , 1 ')' at the end, 2 question mark, and also length is even(8) . But can we make it RBS?? Shouldn't ur code fail at this tc?
@utkarshgupta98583 жыл бұрын
Read the statement carefully, that testcase is not valid acc to the problem
@harshitmakhija68173 жыл бұрын
in the question it is given u have exactly 1 "(" and exactly 1 ")"
@adityaraj52003 жыл бұрын
OOOOOhhhh god , missed it by that much! I failed to interpret what that meant and thus couldn't solve it. Anyways thnx!
@classcure97693 жыл бұрын
@@adityaraj5200 same happened with me so i did it for all the cases xD
@shristip5193 жыл бұрын
@@classcure9769 Yeah same XD
@stevenaws2013 жыл бұрын
Great Video bhai..!!
@rishabhmishra96113 жыл бұрын
Hey how to create that test cases checker you have that looks cool and less messy?
@utkarshgupta98583 жыл бұрын
I'll explain that in the 5k subs special
@kartikeyatripathi73783 жыл бұрын
Can you share you template file?
@umatjeet80123 жыл бұрын
thanks for the stream
@nishantjoshi1673 жыл бұрын
hey how to made cf site in dark mode.
@utkarshgupta98583 жыл бұрын
dark reader extension, sometimes the light theme hurts my eye
@mohan-ri6ze3 жыл бұрын
Just Google how to turn on dark mode in (your browser)
@ayushxstv3 жыл бұрын
Why don't u compete in div 1 contests ,instead of doing div 2 ,div 3 and educational rounds ,these rounds r not for u ... 😂😂
@utkarshgupta98583 жыл бұрын
I'll lose red immediately lol
@aadershchaubey13993 жыл бұрын
@@utkarshgupta9858 what is the minimum number of questions can a purple coder solve in div2 contest Means if I can solve questions till D then what are my chances to become CM
@danilzashikhin35913 жыл бұрын
@@utkarshgupta9858 noob I needed 5 rounds to lose the grandmaster title
@utkarshgupta98583 жыл бұрын
I just don't think that the real Eva would watch my videos, that's it
@danilzashikhin35913 жыл бұрын
@@utkarshgupta9858 I don't watch I only comment
@Tarunkumar-om3hu3 жыл бұрын
App ye test cases kese run kar rahe ho
@ANANDKUMAR-jk9yp3 жыл бұрын
How to solve the same question if the there can be any number of closing and opening brackets and not exactly one @demoralizer
@utkarshgupta98583 жыл бұрын
Greedily fill N/2 opening brackets as early as possible
@classcure97693 жыл бұрын
simple brute force will work like first try filling initial ? with ( so that there is no negative value in our sequence( '(' = +1 and ')' = -1) if there is negative value but no ? before it that means ans is "NO". Now after filling initial ? with '(' -> start the loop on sequence and check for every value that after this indices we have enough ? and ) to make the value 0 if not then ans = "NO" else ans = "YES"; actually i didn't read the exactly one '(' and exactlly one ')' so i did this ques with above method.
@sudarshankundnani413 жыл бұрын
thanks man!!!
@ujjwalkumarray23323 жыл бұрын
Your code would print yes for ((() but it's not rbs
@learnwithme77503 жыл бұрын
according to ques string will contain only one '(' and only one ')'
@ujjwalkumarray23323 жыл бұрын
@@learnwithme7750 oh sorry
@devendrasingh47763 жыл бұрын
Why in A answer is No if length is odd??
@utkarshgupta98583 жыл бұрын
Every open bracket has to close, so even length
@arunmalik65923 жыл бұрын
Problem a Is this a ((((?) a regular sequence plz answer
@samarthraj27143 жыл бұрын
no its not a RBS
@arunmalik65923 жыл бұрын
@@samarthraj2714 Thanks bro
@arunmalik65923 жыл бұрын
@@samarthraj2714 Bhai par bhaiya kai logic se tho ye hai RBS
@samarthraj27143 жыл бұрын
@@arunmalik6592 haan wo thoda confusing lekin ye RBS nhi h aur agr doubt h to apna mail do mai apna code bhej deta hu
@utkarshgupta98583 жыл бұрын
Read the problem again, that's not a valid input
@kamleshjoshi29493 жыл бұрын
Thnks man!!
@ritik6373 жыл бұрын
Great
@danilzashikhin35913 жыл бұрын
Hi
@AbhaySingh-kj6dn3 жыл бұрын
Bhaiyaa mere se do hi ho paaye is baar, thanks for the editorial.