shayan, i cant thank you enough for making these post contest dicussion videos
@sudhanva4222 ай бұрын
The explaination to every problem was up to the point , no time waste .I loved it
@alexandrisaenkov1752 ай бұрын
Thank you so much. I'm really glad that I discovered your channel:))
@priyanshkumar172 ай бұрын
I wasted a lot of time on C because I didn't notice the line that sum of lengths of ALL strings ≤ 2 * 10^5
@shreyanshgangwar77972 ай бұрын
@Competitive Programming with Shayan can you make a detailed video about 2000+ rating questions as to how to approach those not directly the solution to develop intution take differnt topics.
@Abhay142 ай бұрын
C problem explanation was great
@ahmadbodayr72032 ай бұрын
great thank you so much man. Read about islam shayan.❤
@themrunknown8502 ай бұрын
This Div 3 round C is considerably harder than the previous one. D is pretty straightforward though. Thanks for your explanation!
@adityaghosh61702 ай бұрын
Hey dude I don't know why but I am really getting stuck in solving greedy, constructive algorithm questions. Could you please share some guidance as to what I should do in order to improve. I literally go blind as soon as I see the question. If I read like 1 or 2 line from editorial then I am able to pick up the idea otherwise I can't. Any suggestions?
@Isaadqurashi2 ай бұрын
practice practice practice... there's no other way
@adityaghosh61702 ай бұрын
@@Isaadqurashi I am dude....I really am... Just a bit disappointed with my performance
@Isaadqurashi2 ай бұрын
@@adityaghosh6170 it takes time... everything takes times to grow my brother .. im not pro but i started from compilation error now at least i can solve 2-3 problems in each contest..
@UbiycaCrabov2 ай бұрын
when i stuck on first problems i think hmmm what first thing that tourist would come up with. And usually all bad ideas go away.
@adityaghosh61702 ай бұрын
@@Isaadqurashi well that's great. If you can solve 3 problems in div 2 that's a lot of progress
@fantastic-b2m2 ай бұрын
i got alot of TLEs on this contest
@ugaldetellezaaron54982 ай бұрын
i have a tle in c using unordered maps, anyone knows why?
@anasibrahem56522 ай бұрын
+1
@nguyenphuthanhat45302 ай бұрын
problem b right ? Me too i used another vector to mark
@georgeskhater4872 ай бұрын
Don't use unordered maps as they're easily hackable (good avg case terrible worst case) If u don't care about the technical details u can skip the next part : Unordered maps are hashtables which means u need a hash function. Most hash functions usually use prime factorization, in cpp the prime numbers chosen are directly related to ur code, which means that the outputs are predictable. Therefore, it is easy to build a test case in which all of ur nodes will be in the same bucket of ur table - > linear time instead of constant time. Quick fix: use map
@supriya_codes2 ай бұрын
@@georgeskhater487 can you explain with an eg!
@ashhar72842 ай бұрын
unordered map are implemented using hash tables while an ordered map is done using BST. So traversal time on latter one is O(logn) while that of previous is O(n). Therefore unordered map gave tle.
@akshattheintrovert31532 ай бұрын
In this contest, i got so many TLE. Since there was not any penalty on points on any WA, or else...