Programming Club IIITH
Programming Club IIITH
  • 52
  • 34 852

วีดีโอ

Geometry Meet - Anurudh Peduri | Inter-College Competitive Programming Camp | Educational Meet
มุมมอง 603ปีที่แล้ว
Geometry Meet - Anurudh Peduri | Inter-College Competitive Programming Camp | Educational Meet
Indian ICPC CAMP!
มุมมอง 1.4Kปีที่แล้ว
Indian ICPC CAMP!
Session on Sparse Tables and Binary Lifting
มุมมอง 6102 ปีที่แล้ว
Session on Sparse Tables and Binary Lifting
CodeCraft-22 Problem E Editorial
มุมมอง 4812 ปีที่แล้ว
CodeCraft-22 Problem E Editorial
CodeCraft-22 Problem A Editorial
มุมมอง 5102 ปีที่แล้ว
CodeCraft-22 Problem A Editorial
CodeCraft-22 Problem C Editorial
มุมมอง 1.1K2 ปีที่แล้ว
CodeCraft-22 Problem C Editorial
CodeCraft-22 Problem F Editorial
มุมมอง 3072 ปีที่แล้ว
CodeCraft-22 Problem F Editorial
CodeCraft-22 Problem B Editorial
มุมมอง 7352 ปีที่แล้ว
CodeCraft-22 Problem B Editorial
CodeCraft-22 Problem D Editorial
มุมมอง 1.7K2 ปีที่แล้ว
CodeCraft-22 Problem D Editorial
Intro to Competitive Programming (Spring 2022)
มุมมอง 1.3K3 ปีที่แล้ว
Intro to Competitive Programming (Spring 2022)
Dynamic Programming with Bitmasks
มุมมอง 2.2K3 ปีที่แล้ว
Dynamic Programming with Bitmasks
Treaps Made Easy
มุมมอง 6773 ปีที่แล้ว
Treaps Made Easy
Introduction to C++ Advanced
มุมมอง 7813 ปีที่แล้ว
Introduction to C Advanced
Introduction to C++ Basics
มุมมอง 1.1K3 ปีที่แล้ว
Introduction to C Basics
CodeCraft-21 Problem A Editorial
มุมมอง 1.2K3 ปีที่แล้ว
CodeCraft-21 Problem A Editorial
CodeCraft-21 Problem D Editorial
มุมมอง 6653 ปีที่แล้ว
CodeCraft-21 Problem D Editorial
CodeCraft-21 Problem C Editorial
มุมมอง 1.6K3 ปีที่แล้ว
CodeCraft-21 Problem C Editorial
CodeCraft-21 Problem B Editorial
มุมมอง 2.4K3 ปีที่แล้ว
CodeCraft-21 Problem B Editorial
Introduction to HashCode: effective strategies for your first HashCode attempt
มุมมอง 5763 ปีที่แล้ว
Introduction to HashCode: effective strategies for your first HashCode attempt
Strings Meet 2 : Z Algorithm, KMP Automata
มุมมอง 3384 ปีที่แล้ว
Strings Meet 2 : Z Algorithm, KMP Automata
Dynamic Programming [Basics]
มุมมอง 1.6K4 ปีที่แล้ว
Dynamic Programming [Basics]
Number Theory Meet 2
มุมมอง 4384 ปีที่แล้ว
Number Theory Meet 2
Centroid Decomposition
มุมมอง 1.3K4 ปีที่แล้ว
Centroid Decomposition
Number Theory Meet 1
มุมมอง 7854 ปีที่แล้ว
Number Theory Meet 1
Strings Meet 1 (Basics) : String Hashing, Trie, KMP
มุมมอง 4574 ปีที่แล้ว
Strings Meet 1 (Basics) : String Hashing, Trie, KMP
Easy Introduction to Robust Lazy Segment Trees
มุมมอง 2684 ปีที่แล้ว
Easy Introduction to Robust Lazy Segment Trees
Competitive Programming: The Haskell Way
มุมมอง 1.7K4 ปีที่แล้ว
Competitive Programming: The Haskell Way
Intro To Competitive Programming for Freshers [Monsoon 2k20]
มุมมอง 1.1K4 ปีที่แล้ว
Intro To Competitive Programming for Freshers [Monsoon 2k20]

ความคิดเห็น

  • @AdarshKMeher
    @AdarshKMeher 3 หลายเดือนก่อน

    How and where do i register and attempt the test

  • @sanchitkumar6626
    @sanchitkumar6626 4 หลายเดือนก่อน

    You made such hard concept easy to understand really appriciate your effort

  • @Code_Note
    @Code_Note 4 หลายเดือนก่อน

    Hi can you please help with the slides

  • @shivamchauhan029nitjsr4
    @shivamchauhan029nitjsr4 ปีที่แล้ว

    I didn't registered for the Camp, and i don't want to miss any event in future.. is there any discord server or any equivalent group in which i can join ?

  • @Thor_49
    @Thor_49 ปีที่แล้ว

    What's this? I didn't understand anything 🥲

  • @lakshyanawandhar4714
    @lakshyanawandhar4714 ปีที่แล้ว

    Where to register

  • @004vishal3
    @004vishal3 ปีที่แล้ว

    Where to register?

  • @divyanshuagarwal1912
    @divyanshuagarwal1912 ปีที่แล้ว

    nice

  • @karandhingra3042
    @karandhingra3042 ปีที่แล้ว

    how do we do it iteratively

  • @sachinsharma905
    @sachinsharma905 2 ปีที่แล้ว

    Great explanation. Kudos to you.

  • @ooops8745
    @ooops8745 2 ปีที่แล้ว

    Hi can you share this input which you have used in video for explanation?

  • @fonmagnus
    @fonmagnus 2 ปีที่แล้ว

    At 24:19, i think ans(NR) should be subtracted by cntsz_old(NR) instead of cntsz_new(NR) right?

  • @5590priyank
    @5590priyank 2 ปีที่แล้ว

    is there free pdf available for cp handbook?

  • @Itskaintmeenu
    @Itskaintmeenu 2 ปีที่แล้ว

    hi nice video

  • @anabildebnath2590
    @anabildebnath2590 2 ปีที่แล้ว

    it was a nice problem

  • @Sksahu_123
    @Sksahu_123 2 ปีที่แล้ว

    great q

  • @geek8673
    @geek8673 2 ปีที่แล้ว

    accent sudhar le bsdk

  • @satishprajapati1684
    @satishprajapati1684 2 ปีที่แล้ว

    very clear and great explanation. Thanks !!

  • @0chunhui
    @0chunhui 2 ปีที่แล้ว

    Hi, could help me find out why my thought is wrong? My idea is for every index i, calculate the max sum of subarrays that are end at index i, so if the max element in the subarray is less than the max sum, the answer is no, otherwise yes. The code is like this: void solve() { int n; cin >> n; vector<ll> a(n); for(int i=0; i<n; i++) cin >> a[i]; ll cur = -1e18, nax = -1e18; for(int i=0; i<n; i++) { if(a[i] >= cur + a[i]) { cur = a[i]; nax = a[i]; } else { cur += a[i]; nax = max(nax, a[i]); } if(nax < cur) { cout << "No" << endl; return; } } cout << "Yes" << endl; }

  • @girishbhargava6367
    @girishbhargava6367 2 ปีที่แล้ว

    Man, he literally copied the whole code from the tutorials section. I didn't like this thing.

    • @abidulislam3546
      @abidulislam3546 2 ปีที่แล้ว

      wasn't he the one who wrote code in the editorial?

    • @girishbhargava6367
      @girishbhargava6367 2 ปีที่แล้ว

      @@abidulislam3546 I don't think so. If he is, then it's fine.

  • @aayushchhabra9805
    @aayushchhabra9805 2 ปีที่แล้ว

    i guess with prefix array we can also make a greater next element sort of thing to check the conditions like x>0 for then range (i+1,next_greater for ith index)

  • @girishbhargava6367
    @girishbhargava6367 2 ปีที่แล้ว

    I can bet on explaining this problem in this comment better than this student. Foremost, one edge case, if n == 1, output -1 and return to the main function because you won't be able to shuffle anything. Simple, right... Then, I declare a map of int and vector<int>, to store the numbers and their respective indices on which they occur in the vector. In easy words, the number entered by the user is the key, and the indices on which the number occurs get stored in the vector (i.e. the value for that particular key). Now, if a specific shoe size occurs a single time, straight away print -1 and return to the main function. Because there would exist one such person, who would get the smaller shoe size(i.e. the unique size), and this would violate the operation's rules. We can only shuffle if each shoe size occurs at least 2 times in the whole input vector. This means, that we can only shuffle the same shoe sizes. Rest is just implementation. Below is the code, which will make all this thing crystal clear to the reader. #include<bits/stdc++.h> #define ll long long int #define cy cout<<"YES " ; #define cn cout<<"NO " ; #define mod 1000000007 using namespace std ; void solve(){ ll n ; cin>>n ; map<ll , vector<ll>> mp ; vector<ll> z ; for(ll i = 0 ; i < n ; i++){ ll x ; cin>>x ; mp[x].push_back(i) ; } if(n == 1){ cout<<"-1 " ; return ; } vector<ll> v ; for(auto it: mp){ if(it.second.size() == 1){ cout<<"-1 " ; return ; } ll j = it.second[0] ; for(ll i = 1 ; i < it.second.size() ; i++) v.push_back(it.second[i] + 1) ; v.push_back(j + 1) ; } for(auto it: v) cout<<it<<" "; cout<<endl ; } int main(){ ll t ; cin>>t ; while(t--) solve() ; } //Thanks.

    • @aryansinha557
      @aryansinha557 2 ปีที่แล้ว

      Thank you very much for explaining

    • @harshsharma03
      @harshsharma03 2 ปีที่แล้ว

      We can also use a vector<pair<int,int>> right?

    • @girishbhargava6367
      @girishbhargava6367 2 ปีที่แล้ว

      ​@@harshsharma03 I have stored the indices in a vector in my approach. I wonder how you will be able to do it with a vector<pair<int , int>>. Please tell.

  • @shreyashachoudhary480
    @shreyashachoudhary480 2 ปีที่แล้ว

    Great explanation & problem! Btw which app you are using? Seems some linux interface.

    • @viditjain7246
      @viditjain7246 2 ปีที่แล้ว

      Thanks! :) I had used Xournal++ for the illustrations and OBS studio to record it on Linux

    • @harshalgawai746
      @harshalgawai746 2 ปีที่แล้ว

      @@viditjain7246 Yes I have used it too. Its really good. Very good explanation Vidit. Thank you.

  • @sarthakgokhale1062
    @sarthakgokhale1062 2 ปีที่แล้ว

    very good quality question

  • @vishwajeetjangra3390
    @vishwajeetjangra3390 2 ปีที่แล้ว

    A quality problem, so much to learn from it.

  • @amateursoundz6262
    @amateursoundz6262 2 ปีที่แล้ว

    I suddenly feel much less intimidated by segment trees. I now see that they are just a tool.

  • @kaustav07
    @kaustav07 2 ปีที่แล้ว

    This explanation is pure GOLD.

    • @amateursoundz6262
      @amateursoundz6262 2 ปีที่แล้ว

      Agreed, explanations like these should be mandatory for all problemsetters.

  • @ujwalkumar5737
    @ujwalkumar5737 2 ปีที่แล้ว

    🥵

  • @Jay-lj2bv
    @Jay-lj2bv 2 ปีที่แล้ว

    what's wrong with my code int n, k; cin >> n >> k; string s; cin >> s; int ans = 0; int j = n - 1; while (j >= 0 && s[j] == '0') { j--; } int swaps = n - 1 - j; if (j != n - 1 && swaps <= k) { s[n - 1] = '1'; s[j] = '0'; k -= swaps; } int h = 0; while (h < j && s[h] == '0') { h++; } swaps = h - 0; if (h > 0 && h < j && swaps <= k) { s[0] = '1'; s[h] = '0'; } ans = 0; for (int i = 0; i < n - 1; i++) { int d = (s[i] - '0') * 10 + (s[i + 1] - '0'); ans += d; } cout << ans << endl;

  • @prajwalnayak1873
    @prajwalnayak1873 2 ปีที่แล้ว

    thanks bro umesh

  • @shehapeldien7025
    @shehapeldien7025 2 ปีที่แล้ว

    thxx bro

  • @TECHADVICETEAM
    @TECHADVICETEAM 2 ปีที่แล้ว

    C was really innovative problem

    • @ventorz5066
      @ventorz5066 2 ปีที่แล้ว

      use spell checker

    • @TECHADVICETEAM
      @TECHADVICETEAM 2 ปีที่แล้ว

      @@ventorz5066 edited, thanks!

  • @mathematics6199
    @mathematics6199 2 ปีที่แล้ว

    Really good!!

  • @coolninja7712
    @coolninja7712 3 ปีที่แล้ว

    Can you please share the discord server's link?

  • @soham483
    @soham483 3 ปีที่แล้ว

    hey thanks for this 🤟

  • @zihadurrahmman4227
    @zihadurrahmman4227 3 ปีที่แล้ว

    If you tell the thought process it will even more better

  • @rohanray8922
    @rohanray8922 3 ปีที่แล้ว

    For the case : W=10 , and w={ 4,4,4,8,8} the property is not satisfied.

    • @GautamKumar-dg8qc
      @GautamKumar-dg8qc 2 ปีที่แล้ว

      but W should also be the power of two. the property mentioned is only for the elements of the array not the W.

  • @divyanshtiwari6364
    @divyanshtiwari6364 3 ปีที่แล้ว

    Thanks for uploading this recording!

  • @justworkfine321
    @justworkfine321 3 ปีที่แล้ว

    Discord server link please?

  • @sunnykumar-dg7gs
    @sunnykumar-dg7gs 3 ปีที่แล้ว

    Loved this explanation

  • @mingweihe8100
    @mingweihe8100 3 ปีที่แล้ว

    Python doesn't support too deep recursion for this problem, even though I changed the default limit.

  • @siddharthasriramvinjam167
    @siddharthasriramvinjam167 3 ปีที่แล้ว

    Very good explanation. I would like the editorial in codeforces also be this clear. I did not understand why 1 is being subtracted every time . It would have been nice if you have also explained about this in codeforces editorial . Thanks for posting the solution.

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว

      The current particle which directly passes through the current plane will be counted in this current step (in "int ans = 2") and also in the next DP state if I don't subtract 1. The reason for this being as the same particle (current one) is passing through this plane and not any new particle so it should be counted as 1 overall. Thanks for your appreciation!

    • @siddharthasriramvinjam167
      @siddharthasriramvinjam167 3 ปีที่แล้ว

      @@kanishanand4337 Hi Kanish, Can you post a video explanation of Problem E and Problem F of the same problem set.

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว

      @@siddharthasriramvinjam167 Sorry, but due to our courseload we are not getting enough time to record videos for problems E and F. As soon as we get time we will record and post it.

  • @JT-pq1ey
    @JT-pq1ey 3 ปีที่แล้ว

    Man this what is called an editorial. Every nuisance of the solution is clear. I request to make this case by case analysis of future codeforces round. Really awesome work by IIIT Hyderabad!

  • @tanmaiysethiajain4367
    @tanmaiysethiajain4367 3 ปีที่แล้ว

    it was quite difficult for a C question ,

  • @trineshreddybs842
    @trineshreddybs842 3 ปีที่แล้ว

    nice

  • @Amitkumar-vx8gx
    @Amitkumar-vx8gx 3 ปีที่แล้ว

    That's the solution i wanted. Thanks for the video editorial. Please keep uploading these video editorial for the upcoming rounds.it will be very helpful for us.

  • @samimhossainmondal8435
    @samimhossainmondal8435 3 ปีที่แล้ว

    I have also written a code for this solution but during the contest time it's showing Wrong Answer on Pretest 2 ..... why really don't know ..... it passed all the sample cases given in the question . Can you please tell me what's the wrong there ? If you tell I can share the code with you .

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว

      Try to run the test case locally. I hope the test case is visible to you now.

    • @SushantKumar-ui3mn
      @SushantKumar-ui3mn 3 ปีที่แล้ว

      @@kanishanand4337 Same for me...locally it gave correct output

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว

      @@SushantKumar-ui3mn Please share your CF submission link.

    • @samimhossainmondal8435
      @samimhossainmondal8435 3 ปีที่แล้ว

      @@kanishanand4337 yes i have run the test cases locally ... and after analysing it i have seen that the inputs which are only greater than 9 digits are giving garbage values expect that all other inputs are giving right outputs ... understood that something wrong is there in the code but can't debug it . I am sharing my cp submission link , if possible please tell me what's wrong in my code ! Thank You !!! Link : codeforces.com/submissions/i_am_sam (#111390654)

    • @samimhossainmondal8435
      @samimhossainmondal8435 3 ปีที่แล้ว

      @@kanishanand4337 okay okay got it ... actually i have taken integer data types to store the numbers .... my bad ... it should be long long int data type . Got it ! btw thank you so much for suggesting to run in local otherwise can't rectify it 😅

  • @biljithjayan
    @biljithjayan 3 ปีที่แล้ว

    What software are you using to write on the screen? Great questions and explanation btw.

    • @programmingclubiiith4697
      @programmingclubiiith4697 3 ปีที่แล้ว

      Thanks for your appreciation! We used the Xournal app for writing on-screen (github.com/xournalpp/xournalpp).

    • @sunnykumar-dg7gs
      @sunnykumar-dg7gs 3 ปีที่แล้ว

      @@programmingclubiiith4697 This link is not working...404 error

    • @programmingclubiiith4697
      @programmingclubiiith4697 3 ปีที่แล้ว

      @@sunnykumar-dg7gs Sorry for typo. Check this: github.com/xournalpp/xournalpp

  • @aabhassaxena2490
    @aabhassaxena2490 3 ปีที่แล้ว

    Perfect explanation man Even a noob can understand! I request you to please make vids of contests in general as well. It was just crystal clear!!! Thanks a lot🙏🙏🙏

  • @utkarshsharma6650
    @utkarshsharma6650 4 ปีที่แล้ว

    do i need to study DP, Graphs to be able to solve questions in hashcode?