Code, Slides, Contest with easy version, Practice Problems and Similar videos cfstep.com/codeforces/contests/contest-1995/problem-d/
@astroflexx82
Күн бұрын
dude this channel is a gold mine! your explanations are fantastic!
@MilkywayWarrior1618
12 күн бұрын
Amazing! Thanks. I didn't even think of using a sliding window here, but that was exactly what i needed.
@harsh1032
Ай бұрын
Brilliant as always. Gonna support this channel financially once I start earning ❤
@sdmfslkdm
Ай бұрын
this is good . Keep doing it for good problems of div 2 . Highly appreciated .
@mave882
5 күн бұрын
I shared this channel with my friends, and they were totally amazed by the clarity of the explanations. This channel is a goldmine! and you are truly a underrated legend
@cfstepofficial
5 күн бұрын
Thank you for your kind words and for spreading the word about the channel.
@ommoradiya3770
11 күн бұрын
really well spoken!! nice explaination
@kotanys1861
Ай бұрын
What a fun problem!
@SM-eg9jm
Ай бұрын
brilliant video
@user-zj2yl9oo5t
19 сағат бұрын
I am not sure about he sliding window of size K idea should it be every window of size k must have at least one element and the last element should also be a check point because in the examples we have a example AAB and c = 2 k = 2 so A will satisfy the condition of sliding windows and give the answer as 1 but on the contrary the example gives the solution to be 2. I modified your code and added the condition for the last element to be present and the code worked but without that code it isn't working.
@cfstepofficial
14 сағат бұрын
Yes, what you are thinking is correct. Each sliding window of size k should have at least one checkpoint and the last element should also be a checkpoint. This is because no matter how you cut the string, the last character will have to be used. For your example, AAB, the ony cuts are A|AB and AA|B. In both cases, you use 2 unique ending characters, so answer cannot be 1. In the video, I have already mentioned this fact at 18:10
@himanshutrivedi9370
Ай бұрын
Bro any tips stuck at 1050-1100 since 6 months. 😢 Btw quality content 🔥🔥
@cfstepofficial
Ай бұрын
You can ask on aryanc403 discord server. If you're stuck in rating range 1000, you are missing something obvious that should be easy to fix. Let's chat on the server.
Пікірлер: 14