Codeforces Educational Round 101 | Screencast for Problems A to D

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

Utkarsh Gupta

Utkarsh Gupta

Күн бұрын

Пікірлер: 63
@kaal_bhairav_24
@kaal_bhairav_24 3 жыл бұрын
congrats on becoming "GM" @demoralizer
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
I became GM on 1 nov btw, but thanks a lot :)
@arunmalik6592
@arunmalik6592 3 жыл бұрын
@@utkarshgupta9858 Problem a Is this string ((((?) a regular sequence plz answer
@sihabsahariar
@sihabsahariar 3 жыл бұрын
@@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.
@arunmalik6592
@arunmalik6592 3 жыл бұрын
@@sihabsahariar Thanks bro for clearing doubt
@ratneshtiwary9607
@ratneshtiwary9607 3 жыл бұрын
I love watching ur cast man!
@priyanshagarwal2095
@priyanshagarwal2095 3 жыл бұрын
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
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
Oh yeah n-4 + 6 + 3 = n+5, it would've worked... I didn't think of it during the contest
@ParitoshPotukuchi
@ParitoshPotukuchi 3 жыл бұрын
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!
@saitarund1617
@saitarund1617 3 жыл бұрын
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__
@RifatulIslam__ 3 жыл бұрын
Great explanation man💚💚💚
@arvindpatel12
@arvindpatel12 3 жыл бұрын
Please one video on Sublime Text setup for CP for fast testcase run
@amitkumaryadav7240
@amitkumaryadav7240 2 жыл бұрын
What is happening in this case )?(? It will give yes But ans should be no
@aniketdubey7363
@aniketdubey7363 3 жыл бұрын
Thanks for the stream sir Sir how you come up with intuition so quick ?
@abdurrahmansikdernayan5994
@abdurrahmansikdernayan5994 3 жыл бұрын
" ?))) " is it possible to obtain RBS? your code is giving answer "yes". But how? ( A. Regular Bracket Sequence)
@vamsiksk912
@vamsiksk912 3 жыл бұрын
Question says exactly one ( and )
@uklukl4738
@uklukl4738 3 жыл бұрын
Please explain Question E
@adityaraj5200
@adityaraj5200 3 жыл бұрын
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?
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
Read the statement carefully, that testcase is not valid acc to the problem
@harshitmakhija6817
@harshitmakhija6817 3 жыл бұрын
in the question it is given u have exactly 1 "(" and exactly 1 ")"
@adityaraj5200
@adityaraj5200 3 жыл бұрын
OOOOOhhhh god , missed it by that much! I failed to interpret what that meant and thus couldn't solve it. Anyways thnx!
@classcure9769
@classcure9769 3 жыл бұрын
@@adityaraj5200 same happened with me so i did it for all the cases xD
@shristip519
@shristip519 3 жыл бұрын
@@classcure9769 Yeah same XD
@stevenaws201
@stevenaws201 3 жыл бұрын
Great Video bhai..!!
@rishabhmishra9611
@rishabhmishra9611 3 жыл бұрын
Hey how to create that test cases checker you have that looks cool and less messy?
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
I'll explain that in the 5k subs special
@kartikeyatripathi7378
@kartikeyatripathi7378 3 жыл бұрын
Can you share you template file?
@umatjeet8012
@umatjeet8012 3 жыл бұрын
thanks for the stream
@nishantjoshi167
@nishantjoshi167 3 жыл бұрын
hey how to made cf site in dark mode.
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
dark reader extension, sometimes the light theme hurts my eye
@mohan-ri6ze
@mohan-ri6ze 3 жыл бұрын
Just Google how to turn on dark mode in (your browser)
@ayushxstv
@ayushxstv 3 жыл бұрын
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 ... 😂😂
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
I'll lose red immediately lol
@aadershchaubey1399
@aadershchaubey1399 3 жыл бұрын
@@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
@danilzashikhin3591
@danilzashikhin3591 3 жыл бұрын
@@utkarshgupta9858 noob I needed 5 rounds to lose the grandmaster title
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
I just don't think that the real Eva would watch my videos, that's it
@danilzashikhin3591
@danilzashikhin3591 3 жыл бұрын
@@utkarshgupta9858 I don't watch I only comment
@Tarunkumar-om3hu
@Tarunkumar-om3hu 3 жыл бұрын
App ye test cases kese run kar rahe ho
@ANANDKUMAR-jk9yp
@ANANDKUMAR-jk9yp 3 жыл бұрын
How to solve the same question if the there can be any number of closing and opening brackets and not exactly one @demoralizer
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
Greedily fill N/2 opening brackets as early as possible
@classcure9769
@classcure9769 3 жыл бұрын
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.
@sudarshankundnani41
@sudarshankundnani41 3 жыл бұрын
thanks man!!!
@ujjwalkumarray2332
@ujjwalkumarray2332 3 жыл бұрын
Your code would print yes for ((() but it's not rbs
@learnwithme7750
@learnwithme7750 3 жыл бұрын
according to ques string will contain only one '(' and only one ')'
@ujjwalkumarray2332
@ujjwalkumarray2332 3 жыл бұрын
@@learnwithme7750 oh sorry
@devendrasingh4776
@devendrasingh4776 3 жыл бұрын
Why in A answer is No if length is odd??
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
Every open bracket has to close, so even length
@arunmalik6592
@arunmalik6592 3 жыл бұрын
Problem a Is this a ((((?) a regular sequence plz answer
@samarthraj2714
@samarthraj2714 3 жыл бұрын
no its not a RBS
@arunmalik6592
@arunmalik6592 3 жыл бұрын
@@samarthraj2714 Thanks bro
@arunmalik6592
@arunmalik6592 3 жыл бұрын
@@samarthraj2714 Bhai par bhaiya kai logic se tho ye hai RBS
@samarthraj2714
@samarthraj2714 3 жыл бұрын
@@arunmalik6592 haan wo thoda confusing lekin ye RBS nhi h aur agr doubt h to apna mail do mai apna code bhej deta hu
@utkarshgupta9858
@utkarshgupta9858 3 жыл бұрын
Read the problem again, that's not a valid input
@kamleshjoshi2949
@kamleshjoshi2949 3 жыл бұрын
Thnks man!!
@ritik637
@ritik637 3 жыл бұрын
Great
@danilzashikhin3591
@danilzashikhin3591 3 жыл бұрын
Hi
@AbhaySingh-kj6dn
@AbhaySingh-kj6dn 3 жыл бұрын
Bhaiyaa mere se do hi ho paaye is baar, thanks for the editorial.
@vimal3405
@vimal3405 3 жыл бұрын
1st
Codeforces Edu Round 111 | Problems A to E Solutions
1:06:00
Utkarsh Gupta
Рет қаралды 12 М.
Winning Codeforces Round #628 (Div. 2) + Facecam
1:08:33
William Lin (tmwilliamlin168)
Рет қаралды 394 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 96 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 79 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 26 МЛН
Don't Model the Problem
14:32
David Hart
Рет қаралды 31 М.
Codeforces Round 724 | Problems A to D Screencast with Commentary
59:12
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Brian Will
Рет қаралды 2,1 МЛН
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 426 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 832 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 96 МЛН