Unfiltered Programmer
Unfiltered Programmer
  • Видео 44
  • Просмотров 10 242

Видео

Problem B - Cost of the Array codeforces round 1002 (Div. 2) solutions
Просмотров 34512 часов назад
Problem B - Cost of the Array codeforces round 1002 (Div. 2) solutions
Problem A - Milya and Two Arrays codeforces round 1002 (Div. 2) solutions
Просмотров 15212 часов назад
Problem A - Milya and Two Arrays codeforces round 1002 (Div. 2) solutions
White wall Codechef starters 171 solutions
Просмотров 25621 час назад
White wall Codechef starters 171 solutions
Swish Game Codechef starters 171 solutions
Просмотров 16221 час назад
Swish Game Codechef starters 171 solutions
Problem - B Clockwork codeforces round 1001 (Div 1 + Div 2) solutions
Просмотров 567День назад
Problem - B Clockwork codeforces round 1001 (Div 1 Div 2) solutions
Problem - A String codeforces round 1001 (Div 1 + Div 2) solutions
Просмотров 177День назад
Problem - A String codeforces round 1001 (Div 1 Div 2) solutions
Crazy jumping frogs Codechef starters 170 solutions
Просмотров 40614 дней назад
Crazy jumping frogs Codechef starters 170 solutions
Monster Monster Codechef starters 170 solutions
Просмотров 20214 дней назад
Monster Monster Codechef starters 170 solutions
Problem B - Kevin and Geometry codeforces round 999 (Div 1 + Div 2) solutions
Просмотров 27614 дней назад
Problem B - Kevin and Geometry codeforces round 999 (Div 1 Div 2) solutions
Problem A - Kevin and Arithmetic codeforces round 999 (Div 1 + Div 2) solutions
Просмотров 23914 дней назад
Problem A - Kevin and Arithmetic codeforces round 999 (Div 1 Div 2) solutions
Problem C - Game of Mathletes codeforces round 998 (Div. 3) solutions
Просмотров 22514 дней назад
Problem C - Game of Mathletes codeforces round 998 (Div. 3) solutions
Problem B - Farmer John's Card Game codeforces round 998 (Div. 3) solutions
Просмотров 52414 дней назад
Problem B - Farmer John's Card Game codeforces round 998 (Div. 3) solutions
Problem A - Fibonacciness codeforces round 998 (Div. 3) solutions
Просмотров 22014 дней назад
Problem A - Fibonacciness codeforces round 998 (Div. 3) solutions
Minimum cost to Make Arrays Identical Leetcode biweekly contest 148 solutions
Просмотров 11214 дней назад
Minimum cost to Make Arrays Identical Leetcode biweekly contest 148 solutions
Problem B - Find the Permutation codeforces round 997 (Div. 2) solutions
Просмотров 40121 день назад
Problem B - Find the Permutation codeforces round 997 (Div. 2) solutions
Problem A - Shape Perimeter Codeforces round 997 (Div. 2) solutions
Просмотров 36021 день назад
Problem A - Shape Perimeter Codeforces round 997 (Div. 2) solutions
Make K most frequent codechef starters 169 solution || Codechef starters 169 solutions
Просмотров 29221 день назад
Make K most frequent codechef starters 169 solution || Codechef starters 169 solutions
Hamming equivalent codechef starters 169 solution || Codechef starters 169 solutions
Просмотров 55921 день назад
Hamming equivalent codechef starters 169 solution || Codechef starters 169 solutions
Problem B. Crafting codeforces round 996 solution || Codeforces round 996 Div-2 solutions
Просмотров 63821 день назад
Problem B. Crafting codeforces round 996 solution || Codeforces round 996 Div-2 solutions
Problem A. Two Frogs codeforces round 996 solutions
Просмотров 14421 день назад
Problem A. Two Frogs codeforces round 996 solutions
zigzag grid traversal with skip Leetcode weekly contest 432 solution
Просмотров 10821 день назад
zigzag grid traversal with skip Leetcode weekly contest 432 solution
Count distinct elements in every window gfg potd solution
Просмотров 2028 дней назад
Count distinct elements in every window gfg potd solution
Indexes of subarray sum gfg potd solution || Geeksforgeeks potd solutions
Просмотров 5028 дней назад
Indexes of subarray sum gfg potd solution || Geeksforgeeks potd solutions
Binary removals codechef solution || Codechef starters 168 solutions
Просмотров 20228 дней назад
Binary removals codechef solution || Codechef starters 168 solutions
Make odd codechef solution || Codechef starters 168 solutions
Просмотров 13228 дней назад
Make odd codechef solution || Codechef starters 168 solutions
Big Achiever codechef solution || Codechef starters 168 solutions
Просмотров 4428 дней назад
Big Achiever codechef solution || Codechef starters 168 solutions
Count the number of possible Triangles gfg potd solution || gfg potd solutions
Просмотров 10828 дней назад
Count the number of possible Triangles gfg potd solution || gfg potd solutions
3412. Find Mirror score of a string leetcode
Просмотров 61Месяц назад
3412. Find Mirror score of a string leetcode
Problem B - Gorilla and the exam codeforces solution || Hello 2024 codeforces solutions
Просмотров 185Месяц назад
Problem B - Gorilla and the exam codeforces solution || Hello 2024 codeforces solutions

Комментарии

  • @clashersamir1625
    @clashersamir1625 18 часов назад

    upload more of these...good explanation in short time.. straight to the point. love from Bangladesh

  • @princejain9440
    @princejain9440 День назад

    I was thinking about creating videos but not getting time, you are explaining well, keep it up. 😊

  • @villagebox5841
    @villagebox5841 День назад

    thank you sir

  • @a.....g....2091
    @a.....g....2091 День назад

    bhaiya please solve the problem no. 5, 6, 7

  • @ApurbMishra
    @ApurbMishra 2 дня назад

    Bhai maine set ke jagha vector use kiya and mathmatically solve kiya two index to substrate kaar ke and multiply kaar ke ek hi baar but error aya

  • @lazy_bug4246
    @lazy_bug4246 2 дня назад

    Bhai please tell me which rating range ai should practice the most to get pupil on cf ? Matlab pupil ke liye div 2 A and B Krna hota hai toh div 2 B ki on average rating Kya hoti hai ?

    • @UnfilteredProgrammer
      @UnfilteredProgrammer День назад

      If you want to become pupil then you should practice problems with rating 1200, 1300, and 1400... And there is a sheet CP 31 where you can find the best problems to practice. I'm going to start a playlist on that soon...

    • @lazy_bug4246
      @lazy_bug4246 День назад

      @@UnfilteredProgrammer thanks a lot!!! I am already doing 1000 rated from ACD ladder

  • @devanshbhawsar4768
    @devanshbhawsar4768 2 дня назад

    Thanks for explanation

  • @tahmiszubair1644
    @tahmiszubair1644 2 дня назад

    nice explanation

  • @pragatmittal9919
    @pragatmittal9919 2 дня назад

    CODE ??

  • @MikasaAckerman-v8o
    @MikasaAckerman-v8o 2 дня назад

    Great explanation...keep the work up snd try to upload codeforces A B solutions too 🎉

  • @vinayaktiwari1153
    @vinayaktiwari1153 2 дня назад

    Bro cp 31 apne explanation se upload kardo pls 🙏

  • @roshankawale720
    @roshankawale720 2 дня назад

    nice explanation , I follow your channel for codeforces . If possible to share a code with explanation so can you do this

  • @AmanGupta-o4m6l
    @AmanGupta-o4m6l 4 дня назад

    what will be the output for 1,1,3 with k=2

  • @princechaturvedi1567
    @princechaturvedi1567 4 дня назад

    bhaiya code v provide kra dijiye

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 4 дня назад

      #include <bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--){ int n,temp,odd=0; cin>>n; for(int i=0; i<n; i++){ cin>>temp; //Count odd elements... (n-odd will be the even elements) if(temp&1) odd++; } //Checking if even elements zero... then output will be odd-1 if(odd==n){ cout<<odd-1<<endl; continue; } //if there are some even elements... then output will be odd+1 cout<<odd+1<<endl; } }

  • @HarshitaNITSGR23
    @HarshitaNITSGR23 4 дня назад

    brother your teaching is soo good but if possible please try to improve the voice quality thank you soo much

  • @pullobdebnath7031
    @pullobdebnath7031 4 дня назад

    give me your codefroces handle name

  • @UnfilteredProgrammer
    @UnfilteredProgrammer 4 дня назад

    Hey Guys, I missed one point while explaining the solution.. 😊 6:05 at this point we need to check for a2, a3, and a4 if one of them is not equal to 1 then output will be 1 otherwise 2. Because a4 can be the first element of the even index subarray so we need to check for a4 also. 8:38 here also we need to check from a2 to a6... If one of them is not equal to 1 then output will be 1 otherwise 2. We need to check from a2 to the first element of the k-1 elements. Thanks!

  • @Siddikshetty
    @Siddikshetty 5 дней назад

    thanks bro

  • @Vivekrathore6294
    @Vivekrathore6294 5 дней назад

    Sir like given suppose 1 1 1 1 1 1 1 1 2 n=9, k=2 So sir acc to you i will leave the k-1 element from last like i left(2-1) elemnent from last let it be element 2 which i left.. Now so i will check from a2 which is 1 till a8 now here all element are equal to 1 so i will output 2 But sir the ans should be 1 n ?? as i can do partion from a1 to a8 element in index 1 and element 2 at index 2 so while making array b I will push index 2 element which is 2 and 0 So at first position only my 2 is not equal to index 1 so print 1 ?? Please tell sir

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 4 дня назад

      @@Vivekrathore6294 yes you are right... I missed one point while explaining... We leave k-1 elements from left and now if remaining elements are a1 to ai.... Then we need to check from a2 to a(i+1) if any of them is not equal to 1 then output will be one otherwise it will be 2. Ex: 1 1 1 1 1 1 2 3 4 n=9 and k=4 So we skip k-1(i.e 3) elements from left [2,3,4]... Now we need to check for these elements a2 to a7.... Because a7 can be the first element of the even index subarray here! Thanks for pointing out this mistake! 😄 We are leaving the k-1 elements but checking from a2 to first element of the k-1 elements... I hope this helps!

    • @Vivekrathore6294
      @Vivekrathore6294 4 дня назад

      @@UnfilteredProgrammer yes sir got it

  • @Vivekrathore6294
    @Vivekrathore6294 5 дней назад

    Bhai b ka solution post kro

  • @Maximus-oox
    @Maximus-oox 5 дней назад

    Did u get q2.

  • @arc7358
    @arc7358 6 дней назад

    how should we know that we should use setor map for any question

    • @arc7358
      @arc7358 6 дней назад

      please respond

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 6 дней назад

      If you want to store only unique keys then we use set and if you want to store the data in key-value pair then we use a map. Ex: Given an array print all unique elements... In this case we can use a set... Because it will store all the unique elements. Ex-2: Given an array... Print the frequency of all the elements.. In this case we need to store both elements and their frequency... That means we need a key-value pair... So we will use a map here... I hope this helps... Thanks!

  • @NitinSharma-xy6fx
    @NitinSharma-xy6fx 8 дней назад

    Sir, Can you please nake a playlist for learning DSA ... you're explaining very well... nice work..

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 8 дней назад

      @@NitinSharma-xy6fx Bro I have a plan for that... To make playlist for DSA and Competitive programming.... But currently I don't have that much subscribers.... So that's my future plan... Once we have a significant amount of subscribers...

  • @mukulpaul5184
    @mukulpaul5184 8 дней назад

    sir please explain the code part also so that we could also build our implementation skill

  • @mukulpaul5184
    @mukulpaul5184 8 дней назад

    sir ese hi video bnate rho ... your channel will grow exponetially after some time

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 8 дней назад

      Thanks 😊

    • @catspeaking7
      @catspeaking7 8 дней назад

      ​@@UnfilteredProgrammer Your channel will grow soon....Just wait and watch 👍 Keep doing... Also please provide A and B also from further contest 👍

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 8 дней назад

      @@catspeaking7 Thanks for your support 😊

  • @aniruddhadabade4198
    @aniruddhadabade4198 9 дней назад

    Bhai apne ye approach socha kaise? muze samz mai hi nahi ata konsa approach lagana hai?

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      @@aniruddhadabade4198 just by following the given two conditions..

    • @aniruddhadabade4198
      @aniruddhadabade4198 9 дней назад

      @@UnfilteredProgrammer aap contest ke problems kaise solve kr sakte ho muze codechef contest mai sirf first 2 hi ate hai baki ke nahi ate kuch suggest kr sakte ho kya ki mai kaise improve kru? please help krdo?

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      @@aniruddhadabade4198 brother you need to solve more problems for practice.... Try to solve problems with the Rating=your current rating + (100, 200, and 300)... Firstly try to solve it by yourself with atleast 2 or 3 attempts... If you are not able to solve the problem then watch the video tutorial.... And even if you are able to solve the go and analyze the others code...

    • @aniruddhadabade4198
      @aniruddhadabade4198 9 дней назад

      @@UnfilteredProgrammer ok bro

    • @aniruddhadabade4198
      @aniruddhadabade4198 9 дней назад

      Thanks bro

  • @AnujKumar-y5q9o
    @AnujKumar-y5q9o 9 дней назад

    How can you take n=8

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      To prove the second condition that it is impossible to win if we have n=8 and given M moves like this: SSPSP

    • @AnujKumar-y5q9o
      @AnujKumar-y5q9o 9 дней назад

      @UnfilteredProgrammer but if we take n=7 it is also possible to lose the game

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      @@AnujKumar-y5q9o yes you are right... But we are considering the edge case here.

  • @UnfilteredProgrammer
    @UnfilteredProgrammer 9 дней назад

    #include <bits/stdc++.h> using namespace std; int check(string &s, string pattern) { int count=0; int n=s.length(); for(int i =0; i<n; i++){ if(s[i]!= pattern[i%3]) count++; } return count; } int main() { int t; cin>>t; while(t--){ int n, min_changes = INT_MAX; cin >> n; string s; cin >> s; vector<string> patterns = {"RGB", "RBG", "GRB", "GBR", "BRG", "BGR"}; for(string pattern : patterns){ min_changes = min(min_changes, check(s, pattern)); } cout<<min_changes<<endl; } return 0; }

  • @biplobdash245
    @biplobdash245 9 дней назад

    B number please explain

  • @jasstagf.p9199
    @jasstagf.p9199 9 дней назад

    can you give me your code because i am anable to implement it

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      #include <bits/stdc++.h> using namespace std; #define int long long signed main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<int> v(n); map<int, int> mp; for (int i = 0; i < n; i++) { cin >> v[i]; mp[v[i]]++; } vector<int> d; int flag = 0; for (auto it : mp) { if (it.second > 3) { cout << it.first << " " << it.first << " " << it.first << " " << it.first << endl; flag = 1; break; } if (it.second >= 2) { d.push_back(it.first); } } if (flag) continue; if (d.size() == 0) { cout << -1 << endl; continue; } if (d.size() > 1) { cout << d[0] << " " << d[0] << " " << d[1] << " " << d[1] << endl; continue; } vector<int> ans; int duplicate = d[0]; int count = 0; sort(v.begin(), v.end()); for (int i = 0; i < n; i++) { if (v[i] == duplicate) { if (count >= 2) ans.push_back(v[i]); count++; } else { ans.push_back(v[i]); } } for (int i = 1; i < ans.size(); i++) { if (ans[i] - ans[i - 1] < 2 * duplicate) { cout << duplicate << " " << duplicate << " " << ans[i - 1] << " " << ans[i] << endl; flag = 1; break; } } if (!flag) { cout << -1 << endl; } } return 0; }

  • @Krex-h7o
    @Krex-h7o 9 дней назад

    Sir, when we move forward, I understand difference will be n-i-1 but when going backwards ahould it not be i-1 and not just i.

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 9 дней назад

      We are using zero based indexing here.... So it will be i.... in this case here...

  • @Mukul-k4o
    @Mukul-k4o 10 дней назад

    sir provide the code also so that we could understand better... your teaching style is amazing you can make a place in competetive programming .. just provide the solution also as we are begineer's

  • @Vivekrathore6294
    @Vivekrathore6294 12 дней назад

    Sir try to upload the solution of c and d problem of codeforces also along with a and b as your explanation are very crystal clear please 😊😊

  • @imzerofnlol
    @imzerofnlol 12 дней назад

    thanks man! great explanation, bhai thoda ek doubt tha. I've reached specialist before on cf but I'm not able to do well on adhoc problems/ greedy and feel realy dumb sometimes, any tips on what or how do I improve would be really appreciated

    • @UnfilteredProgrammer
      @UnfilteredProgrammer 11 дней назад

      You need practice... Try to solve problems with rating = Your Current Rating + (100, 200, 300)....

  • @saww8103
    @saww8103 12 дней назад

    Thank you bhai, i was very close to solving this but my dumbass couldnt figure out the formula

  • @anubhavpathak4715
    @anubhavpathak4715 12 дней назад

    thanks bro👍👍

  • @utkarshrai101cartoonwala
    @utkarshrai101cartoonwala 12 дней назад

    Great explanation bro!!

  • @IRONMAN-co7qg
    @IRONMAN-co7qg 13 дней назад

    You have great skills but try to teach on some excalidraw or similar to grow more .

  • @harshsingh-v2l
    @harshsingh-v2l 13 дней назад

    nice bhaiya❤❤❤❤

  • @ProGamer-dw1eb
    @ProGamer-dw1eb 15 дней назад

    bhai +2 ka case keise , hamesha -2 ya 0 hi hoga na (difference between indexes)

    • @tanujagoli3625
      @tanujagoli3625 15 дней назад

      Because they are moving away. Suppose i =2 and j=6 then in the next case i=1 and j =7 so initially it is 6-2=4 and now it is 7-1=6

    • @ProGamer-dw1eb
      @ProGamer-dw1eb 14 дней назад

      @@tanujagoli3625 if i is 2 and j is 6 shouldn't lower index move right and higher index move left i.e. i =3 and j = 5

  • @khaby0060
    @khaby0060 15 дней назад

    PLZ bro make a video on how to think when solving questions like these especially when graphs/maths is involved

  • @lazy_bug4246
    @lazy_bug4246 15 дней назад

    Bhai ekdam badhiya explanation, bohot derr se confuse tha mai

  • @deepakjain4481
    @deepakjain4481 15 дней назад

    My brain was lost during solving this question

  • @ryskathisside9281
    @ryskathisside9281 15 дней назад

    great explanation

  • @UnfilteredProgrammer
    @UnfilteredProgrammer 15 дней назад

    #include <bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--){ int n,temp,even=0,odd=0; cin>>n; for(int i=0; i<n; i++){ cin>>temp; if(temp&1) odd++; else even++; } cout<<max(odd,even)<<endl; } }

  • @UnfilteredProgrammer
    @UnfilteredProgrammer 15 дней назад

    #include <bits/stdc++.h> using namespace std; #define int long long signed main() { int t; cin>>t; while(t--){ int n,x; cin>>n>>x; vector<int>v(n); for(int i=0; i<n; i++) cin>>v[i]; sort(v.begin(), v.end()); int mx=0; for(int i=0; i<n; i++){ v[i]=v[i]+x*(n-i-1); mx=max(mx,v[i]); } cout<<mx<<endl; } }

  • @vidhut-rau
    @vidhut-rau 16 дней назад

    bro can you upload qUesTs (Easy) sol

  • @sadfgb
    @sadfgb 16 дней назад

    please upload solution of qUiRkY qUesTs (Easy) problem . Thank you

  • @PiyushSingh-vn7ql
    @PiyushSingh-vn7ql 16 дней назад

    Can u share ur cf profile?

  • @SudosuSenpai
    @SudosuSenpai 18 дней назад

    Bhai, ye 2a>b-c condition kaha pata chali aapko