Codeforces Round 966 (Div 3) - Programming Contest Solution Discussion

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024

ความคิดเห็น • 28

  • @Jazzimus
    @Jazzimus 26 วันที่ผ่านมา +3

    shayan, i cant thank you enough for making these post contest dicussion videos

  • @sudhanva422
    @sudhanva422 27 วันที่ผ่านมา +2

    The explaination to every problem was up to the point , no time waste .I loved it

  • @alexandrisaenkov175
    @alexandrisaenkov175 26 วันที่ผ่านมา

    Thank you so much. I'm really glad that I discovered your channel:))

  • @priyanshkumar17
    @priyanshkumar17 27 วันที่ผ่านมา +3

    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

  • @shreyanshgangwar7797
    @shreyanshgangwar7797 26 วันที่ผ่านมา +1

    ​​@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.

  • @ahmadbodayr7203
    @ahmadbodayr7203 27 วันที่ผ่านมา +3

    great thank you so much man.
    Read about islam shayan.❤

  • @themrunknown850
    @themrunknown850 27 วันที่ผ่านมา +1

    This Div 3 round C is considerably harder than the previous one. D is pretty straightforward though. Thanks for your explanation!

  • @adityaghosh6170
    @adityaghosh6170 28 วันที่ผ่านมา +2

    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?

    • @Isaadqurashi
      @Isaadqurashi 28 วันที่ผ่านมา +4

      practice practice practice... there's no other way

    • @adityaghosh6170
      @adityaghosh6170 28 วันที่ผ่านมา +1

      @@Isaadqurashi I am dude....I really am... Just a bit disappointed with my performance

    • @Isaadqurashi
      @Isaadqurashi 28 วันที่ผ่านมา +4

      ​@@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..

    • @user-kp1tc1zd2q
      @user-kp1tc1zd2q 28 วันที่ผ่านมา +1

      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.

    • @adityaghosh6170
      @adityaghosh6170 27 วันที่ผ่านมา +1

      @@Isaadqurashi well that's great. If you can solve 3 problems in div 2 that's a lot of progress

  • @Abhay14
    @Abhay14 27 วันที่ผ่านมา

    C problem explanation was great

  • @user-lz9ld5tj6i
    @user-lz9ld5tj6i 27 วันที่ผ่านมา

    i got alot of TLEs on this contest

  • @ugaldetellezaaron5498
    @ugaldetellezaaron5498 27 วันที่ผ่านมา

    i have a tle in c using unordered maps, anyone knows why?

    • @anasibrahem5652
      @anasibrahem5652 27 วันที่ผ่านมา

      +1

    • @nguyenphuthanhat4530
      @nguyenphuthanhat4530 27 วันที่ผ่านมา

      problem b right ? Me too i used another vector to mark

    • @georgeskhater487
      @georgeskhater487 27 วันที่ผ่านมา +1

      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_codes
      @supriya_codes 26 วันที่ผ่านมา

      @@georgeskhater487 can you explain with an eg!

    • @ashhar7284
      @ashhar7284 24 วันที่ผ่านมา +2

      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.

  • @akshattheintrovert3153
    @akshattheintrovert3153 27 วันที่ผ่านมา

    In this contest, i got so many TLE. Since there was not any penalty on points on any WA, or else...

  • @munib2023
    @munib2023 27 วันที่ผ่านมา

    First work in ur English

    • @iPunishCode
      @iPunishCode 27 วันที่ผ่านมา +1

      u too

    • @Jazzimus
      @Jazzimus 26 วันที่ผ่านมา +4

      his english is perfectly comprehensible