Atcoder Beginner Contest 202 | Problems A to E Screencast with Solutions

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 69

  • @AmmarShaikh-pe4mc
    @AmmarShaikh-pe4mc Před 3 lety +23

    Can you make video on templates for cp and your sublime setup for cp

  • @hamimibnenasim4397
    @hamimibnenasim4397 Před 3 lety +13

    After seeing an AC
    Utkarsh: oh cool
    me: google kidhar hai :3

  • @ani68
    @ani68 Před 3 lety +12

    Congrats for 20k subs utkarsh.....😃🎊
    And one question.....are you giving tomorrow's kickstart (means will we get Screencast after the contest)???

  • @rangeyraghav130
    @rangeyraghav130 Před 3 lety +14

    Was able to solve the first three
    Then tired D for 1 hour but had no idea
    😭😭

  • @raysk4798
    @raysk4798 Před 3 lety +2

    Thank you for clear explanation!

  • @indiansoftwareengineer4899

    Bro, you are so ground to earth, awesome,
    do a live session someday here.

  • @guardkaiser9344
    @guardkaiser9344 Před 3 lety +2

    D no was a very interesting problem

  • @SagarSonejaEARCS
    @SagarSonejaEARCS Před 3 lety +7

    bhaiya Problem D me pascal triangle ka use samjh ni ayya.........please help

    • @classcure9769
      @classcure9769 Před 3 lety +5

      Actually , if we calculate nCr by normal formula = (n!)/(r!*(n-r)!) it will give overflow error as max value of n can be 30 and 30! has 33 digits which will obv overflow but if deduce it into the formula nCr = (n-1)Cr + (n-1)C(r-1) we will not face that issue.

    • @abhijitroy1958
      @abhijitroy1958 Před 3 lety +1

      @@classcure9769 I was about to reply ,well explained ☀️

  • @sergemerto256
    @sergemerto256 Před rokem +1

    What is the api you are using to clone the testcases in your local environment? I know how to do it in codeforces using cf tool but not sure about atcoder and other websites

  • @classcure9769
    @classcure9769 Před 3 lety +3

    Solved 4 problems.
    I was close in E .
    Overall good contest.
    problem D was bit time consuming.

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety +2

      yeah D was tougher than E if you know about sack/euler tours

    • @classcure9769
      @classcure9769 Před 3 lety +2

      @@utkarshgupta9858 Yeah I was proceeding with euler tour but My thinking went into other direction than Binary search.

  • @anikmandal6375
    @anikmandal6375 Před 3 lety +2

    Please upload E as a separate video..it will be very useful

  • @udayverma6120
    @udayverma6120 Před 3 lety +5

    Hi, I want to become better at CP. Can you please share some tips, I'm a beginner.
    Also, do you think giving old virtual contests almost everyday and then upsolving a good way to practice?

    • @himanshudixit490
      @himanshudixit490 Před 3 lety +2

      There is no roadmap as such .. The only way to become good is just to practice problems little bit higher than your level....Still not satisfied then google/yandex/yahoo (whatever you like) "How to become good at CP" .. Wish you luck buddy !

  • @ahmedreza3374
    @ahmedreza3374 Před 3 lety +1

    How you are testing input without copying them🤔!??

  • @criticcell
    @criticcell Před 3 lety +1

    Please make a video on your sublime setup.

  • @soumy_jain
    @soumy_jain Před 3 lety +1

    Can you make an editorial for problem E please? I want to learn that technique.

  • @vishalchaurasia3386
    @vishalchaurasia3386 Před 3 lety +5

    6:26 😂😂

  • @ARYANRAJ-cb4gf
    @ARYANRAJ-cb4gf Před 3 lety +6

    how are u extracting the sample test cases without copying them?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety +5

      secret techniques

    • @anexocelisia9377
      @anexocelisia9377 Před 3 lety +5

      @@utkarshgupta9858 Hey tell na please 🙏

    • @mohsinur999
      @mohsinur999 Před 3 lety +1

      @@utkarshgupta9858 Please make a video on this

    • @hitesh6856
      @hitesh6856 Před 3 lety

      @@mohsinur999 He already did in a screencast's ending

    • @mohsinur999
      @mohsinur999 Před 3 lety

      @@hitesh6856 Please share the link. Thank you.

  • @yushraj118
    @yushraj118 Před 3 lety +2

    Bhaiya aap apne ......sublime text setup ke upar ek video bana dijiye please

  • @sarvesh_k
    @sarvesh_k Před 3 lety +2

    can you please make a video on CP editor Setup?

  • @ajeetsingh-vw5yv
    @ajeetsingh-vw5yv Před 3 lety +2

    Why are we using ncr in D

  • @yashwanthnakka1741
    @yashwanthnakka1741 Před 2 lety +1

    How did sublime loaded the test cases by default ?

  • @TechieIndia
    @TechieIndia Před 3 lety

    I have one very silly doubt. At 14:34, I don't get the idea of subtracting cnt from k in 'b' and nothing in the case of 'a'. Please clear my doubt

  • @amannautiyal
    @amannautiyal Před 3 lety

    all the best bhaiya. aaj Rank 1

  • @manthanvats9809
    @manthanvats9809 Před 3 lety +1

    @Utkarsh Gupta you used a VECTOR OF VECTORS to calculate NCR but I just used the NCR formula and I got correct answer for given testcases and few of mine testcases but it giving WA on few testcases and AC on others.. please tell me what should I do?
    should I use vectors of vectors like you did?

  • @srishtikdutta8946
    @srishtikdutta8946 Před 3 lety +2

    What is SAG or SACK which technice you said in E?

  • @aryanagrawal4794
    @aryanagrawal4794 Před 3 lety

    How do u right the main method in ur code? I'm always confused about it. I do my coding in python where i solve questions in leetcode where i have to complete the function without taking input. I wanted to start cp so I'm confused about the main method unlike u just solve the question in ur void solve() and dont change the main method and copy paste the code.

  • @akshay8675
    @akshay8675 Před 3 lety

    bro make a video on your setup and shortcut keys

  • @beerauppamnaveenteja720

    Can give me some suggestions..I am just going to begin competitive programming in next week ending.i learnt c language quite well.

  • @srinjaykapri7
    @srinjaykapri7 Před 3 lety

    How to cover advance topics with parallel contest??

  • @AmanSharma-or5vh
    @AmanSharma-or5vh Před 3 lety

    Too Good

  • @leviackerman9882
    @leviackerman9882 Před 3 lety

    12:23 noob math doubt :
    I see it like : If we fix a at the current position, then we have total (a-1+b)!/(a-1)!b! Strings
    (Total permutations/repetitions)
    Also ncr[a+1-b][b] yeilds the same thing but I can't relate how the formula is working
    how is choosing b out of a-1+b working the same as (total permutations/repetitions) ?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety

      actually it's ncr[a-1+b][b], out of (a-1+b) positions, we're choosing b positions as 'b' and remaining (a-1) will automatically be 'a'... so this makes a permutation...

    • @leviackerman9882
      @leviackerman9882 Před 3 lety

      @@utkarshgupta9858 got it now, thnx 👀

  • @Saitama-kf4oy
    @Saitama-kf4oy Před 3 lety

    hello sir, can you solve 4-5 selected 1D dp hard problems

  • @maikarmahoon
    @maikarmahoon Před 3 lety

    Can you show your sublime text setup.......

  • @sh-jb3mp
    @sh-jb3mp Před 3 lety

    When you stared cp?

  • @thisisalbyjacob
    @thisisalbyjacob Před 3 lety +1

    Doubt :
    Why most of the programmers use microsoft

    • @vaibhav18vk
      @vaibhav18vk Před 3 lety

      Most Developers use Linux But Most Programmers use Windows as u said 😁

    • @thisisalbyjacob
      @thisisalbyjacob Před 3 lety

      @@vaibhav18vk????
      I am only 15 say it simply😑😑

  • @anjaligoswami9664
    @anjaligoswami9664 Před 3 lety +1

    Hello.. utkarsh
    Can u please make a discord channel for CP.. we all will be able to help each other in discord..

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety +4

      lol yes good idea. actually it's been around for 6 months at least... here's the link: discord.gg/qH9nnaRmtp

    • @anjaligoswami9664
      @anjaligoswami9664 Před 3 lety

      @@utkarshgupta9858 ohhh nice thanks ❤❤

  • @afkgaming3203
    @afkgaming3203 Před 2 lety

    You should explain the problems more cuz sometimes its difficult for us to understand the question in the first place

  • @sohammukherjee8079
    @sohammukherjee8079 Před 3 lety

    What would be the Sack way to do it ?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 3 lety +1

      keep track of how many vertices are at depth d in all subtrees for all d. it works offline

  • @kongzilla2897
    @kongzilla2897 Před 3 lety

    Why are you so smart?

  • @097kushagrarawat9
    @097kushagrarawat9 Před 3 lety

    Your Sublime Template ......

  • @gokarnapandey4930
    @gokarnapandey4930 Před 2 lety

    padhane aate ho ki apna gyan dikhane bhai !!

    • @utkarshgupta9858
      @utkarshgupta9858  Před 2 lety

      Gyan dikhane

    • @gokarnapandey4930
      @gokarnapandey4930 Před 2 lety

      @@utkarshgupta9858 अरे अरे भाई 😂😂। ksm se yrr mai kbhi socha nhi tha ki aap aise comment ko reply doge ...Thank you bro .. But you need to explain more as compared to last problems.

    • @gokarnapandey4930
      @gokarnapandey4930 Před 2 lety

      Yrr bhai ek video backtracking pe bana dete to bhut help ho jati meri ...🙏🙏