Dustin404
Dustin404
  • 37
  • 5 621

Video

Array Removal Codechef Solution || Starters142
zhlédnutí 53Před dnem
Array Removal Codechef Solution || Starters142
Number Hunt Codechef Solution || Starters142
zhlédnutí 9Před dnem
Number Hunt Codechef Solution || Starters142
Corner Twist Codeforces Solution
zhlédnutí 26Před 14 dny
Corner Twist Codeforces Solution
Nearly Equal Codechef Solution || Starters 141
zhlédnutí 42Před 14 dny
Nearly Equal Codechef Solution || Starters 141
Redundant Array Codechef Solution || Starters 141
zhlédnutí 99Před 14 dny
Redundant Array Codechef Solution || Starters 141
Basil's Garden Codeforces Solution
zhlédnutí 125Před 21 dnem
Basil's Garden Codeforces Solution
Substring and Subsequence Codeforces Solution
zhlédnutí 83Před 21 dnem
Substring and Subsequence Codeforces Solution
Typing on MonkeyType || Day 1 || Till 80 WPM
zhlédnutí 7Před 21 dnem
Typing on MonkeyType || Day 1 || Till 80 WPM
Trick Or Treat Codechef Solution || Starters140
zhlédnutí 137Před 21 dnem
Trick Or Treat Codechef Solution || Starters140
Make Permutation Codechef Solution || Starters 140
zhlédnutí 57Před 21 dnem
Make Permutation Codechef Solution || Starters 140
Boring Day Codeforces Solution || Div2
zhlédnutí 116Před 28 dny
Boring Day Codeforces Solution || Div2
Collatz Conjecture Codeforces Solution || Div2
zhlédnutí 363Před 28 dny
Collatz Conjecture Codeforces Solution || Div2
Remove Two Letters Codeforces Solution || Div 3
zhlédnutí 104Před rokem
Remove Two Letters Codeforces Solution || Div 3
Powering the Hero (easy and hard version) Codeforces Solution || Div 3
zhlédnutí 481Před rokem
Powering the Hero (easy and hard version) Codeforces Solution || Div 3
Is it a cat? Codeforces Solution || Div 3
zhlédnutí 802Před rokem
Is it a cat? Codeforces Solution || Div 3
Serval And Inversion Magic Codeforces solution | Codeforces Div 2
zhlédnutí 182Před rokem
Serval And Inversion Magic Codeforces solution | Codeforces Div 2
Serval and Mocha's Array Solution | Codeforces Div 2
zhlédnutí 56Před rokem
Serval and Mocha's Array Solution | Codeforces Div 2
Matching Numbers Codeforces Solution | Codeforces Div 2
zhlédnutí 74Před rokem
Matching Numbers Codeforces Solution | Codeforces Div 2
Sum of two numbers Codeforces Solution || Codeforces Div 2
zhlédnutí 59Před rokem
Sum of two numbers Codeforces Solution || Codeforces Div 2
One and Two Codeforces Solution || Codeforces Div 2
zhlédnutí 69Před rokem
One and Two Codeforces Solution || Codeforces Div 2
Negatives and Positives Codeforces Solution | Div 4
zhlédnutí 95Před rokem
Negatives and Positives Codeforces Solution | Div 4
Distinct Split Codeforces Solution | Div 4
zhlédnutí 421Před rokem
Distinct Split Codeforces Solution | Div 4
Following Directions Codeforces Solution | Codeforces Div 4
zhlédnutí 260Před rokem
Following Directions Codeforces Solution | Codeforces Div 4
Make Array Odd Codechef Solution| Codechef Starters 76
zhlédnutí 99Před rokem
Make Array Odd Codechef Solution| Codechef Starters 76
Not Divisible Codechef Solution | Codechef Starters 76
zhlédnutí 140Před rokem
Not Divisible Codechef Solution | Codechef Starters 76
Zero String Codechef Solution | codechef starters 76
zhlédnutí 62Před rokem
Zero String Codechef Solution | codechef starters 76
Number Factorization Codeforces | Div 1 + Div 2
zhlédnutí 266Před rokem
Number Factorization Codeforces | Div 1 Div 2
Exponential Equation Codeforces | Div 1 + Div 2
zhlédnutí 51Před rokem
Exponential Equation Codeforces | Div 1 Div 2
Vlad and a pair of numbers Codeforces Solution | Codeforces Round 847 Div 3
zhlédnutí 359Před rokem
Vlad and a pair of numbers Codeforces Solution | Codeforces Round 847 Div 3

Komentáře

  • @sumitpatil4732
    @sumitpatil4732 Před 4 dny

    why while(j!=n) is wrong and what if j==n and we access vector pls explian

    • @dustin4047
      @dustin4047 Před 4 dny

      while (j != (n + 1)) { if (sum >= l && sum <= r) { ans++; sum = 0; i = j; } else if (sum < l) { sum = sum + v[j]; j++; } else { sum = sum - v[i]; i++; } } vo isliye kyuki yha code ko dekho .... maanlete hai ki j ekdm last me aagya (n-1) or else if me gya vaha sum me plus hua v[j]... ab vaha hua j increment (j=n) ab agr mene while me likha hota ki while (j != n) to loop aage ni bdhta pr hme chahiye ki vo ek baar or chle kyuki hmne pichle vale iteration me last element ko add kia tha pr check ni kia ki kya ye l or k beech me lie krta h ya ni to isliye.... basically mera sum pehle check horha h or values add baad me horhi h isliye ek iteration or lgrha h taki vo sum ko check kr ske.....I hope smjh aaya ho

  • @nivinsamuel4201
    @nivinsamuel4201 Před 7 dny

    Thank you bro

  • @omthorve7928
    @omthorve7928 Před 10 dny

    Very good explanation in such a short time

  • @YSERIESOFICIAL
    @YSERIESOFICIAL Před 12 dny

    awesome bro

  • @dustin4047
    @dustin4047 Před 13 dny

    #include <bits/stdc++.h> using namespace std; int main() { // your code goes here int t; cin>>t; while(t--) { int x; cin>>x; int temp=x; int ans=0; for(int i=0;i<32;i++) { if (temp & (1 << i)) { ans=i; } } int temp2=x-pow(2,ans); if(temp2) { cout<<temp2*2<<endl; } else{ cout<<0<<endl; } } }

  • @dustin4047
    @dustin4047 Před 20 dny

    #include <bits/stdc++.h> using namespace std; int main() { // your code goes here int t; cin>>t; while(t--) { int m,n; cin>>m>>n; string s,t; cin>>s>>t; int ans=0; int fans=INT_MAX; for(int j=0;j<=m-n;j++) { //storm //orz ans=0; for(int i=0;i<n;i++) { if(s[j+i]!=t[i]) { ans++; } } fans=min(fans,ans); } cout<<fans<<endl; } }

  • @samarkrishna7473
    @samarkrishna7473 Před 20 dny

    sliding window easy approach ni hota?

    • @dustin4047
      @dustin4047 Před 20 dny

      try krke dekh pehle ho skta h easy pde.... mujhe 2 pointer thoda easy lga

  • @nikhilkatoch577
    @nikhilkatoch577 Před 21 dnem

    What I did was I used the lcs to give me the length of longest common subsequence. Then answer was |a| + |b| - lcsLength It's not getting passed. What am I doing wrong? Any test case for this.

    • @dustin4047
      @dustin4047 Před 21 dnem

      @@nikhilkatoch577 can u share me your code

    • @dustin4047
      @dustin4047 Před 21 dnem

      @@nikhilkatoch577 what will be your answer for abcd bed I think it would be 4+3-2=5 but if we think the answer would be beabcd or abcded this will give length 6... answer is 6

    • @nikhilkatoch577
      @nikhilkatoch577 Před 12 dny

      @@dustin4047 yup I guess... But is 5 gnna be the correct answer....

    • @nikhilkatoch577
      @nikhilkatoch577 Před 12 dny

      @@dustin4047 sure.... Give me some time

  • @user-zf2or7jb7y
    @user-zf2or7jb7y Před 22 dny

    code share place in comment section !!!!

    • @dustin4047
      @dustin4047 Před 22 dny

      void solve() { ll x, y, z; cin >> x >> y >> z; x++; z--; while (x != y) { if (x % y == 0) { while (x % y == 0) x = x / y; } if (z == 0) { cout << x << endl; return; } ll temp = y - x % y; if (temp <= z) { x = x + temp; z = z - temp; } else { cout << x + z << endl; return; } } cout << 1 + z % (y - 1) << endl; }

    • @user-zf2or7jb7y
      @user-zf2or7jb7y Před 19 dny

      @@dustin4047 tnx...vai

  • @subhashsuryawanshi8820

    Good explanation thank you, keep it up

  • @TheBaljitSingh
    @TheBaljitSingh Před 26 dny

    bro how do get idea to use map and specially check m- (reamainder of vector 1) in map??

    • @dustin4047
      @dustin4047 Před 26 dny

      mne dekha ki pehle array k elements me mujhe kuch kmi pd rhi hai ... agr vo kmi Puri ho jaye to mera divisible hojaye m se to mene kya kia ki pehle chocolate baat di evenly m=5 bccho me ab meri bchi kuch chocolates hai boxes me unki range kya hogi 0 se leke 4 kyuki agr box me 5 chocolate hui to vo to me baat hi duga. ab ye jo mere pass remainders bcche hai inhe mujhe kahi store Krna hai ki kitne box me kitni chocolates hai... jruri ni map use use ...hm esa bhi kr skte hai ki array lele n size ka fir usme index k according vaha count daal de bchi hui chocolates ka.... or traversing candies array k time dekh lia ki jiski mujhe zrurt hai kya vo mere count vale array me present hai ya ni

    • @dustin4047
      @dustin4047 Před 26 dny

      still have doubt then tell me

    • @TheBaljitSingh
      @TheBaljitSingh Před 22 dny

      @@dustin4047 Thanks mere bhai for reply

  • @akhandawasthi5990
    @akhandawasthi5990 Před 26 dny

    bad explanation..

    • @dustin4047
      @dustin4047 Před 26 dny

      pls tell me where u faced the problem... I'll try to solve here

    • @toshiksharma
      @toshiksharma Před 22 dny

      @@dustin4047 buddy you did great , don't give too much attention to these haters!

    • @dustin4047
      @dustin4047 Před 22 dny

      @@toshiksharma appreciate that

  • @Prashant_Rawat01
    @Prashant_Rawat01 Před 27 dny

    Brilliant ❤

  • @gentleman4615
    @gentleman4615 Před 9 měsíci

    never make again any videos

  • @VishnuKumar-ig4rt
    @VishnuKumar-ig4rt Před 10 měsíci

    awesome explanation

  • @studyforupscias6525

    Wrong answer on test 3

  • @modiyadeepashokbhai5466

    bhai wrong ans

    • @dustin4047
      @dustin4047 Před rokem

      code please

    • @modiyadeepashokbhai5466
      @modiyadeepashokbhai5466 Před rokem

      @@dustin4047 #include <bits/stdc++.h> using namespace std; int main() { int t,n,flag; cin>>t; string s; while(t--) { flag=0; cin>>n>>s; for(int i=0;i<n/2;i++) { if(s[i]==s[n-i-1]) { if(flag==1) flag=2; } else { if(flag==2) { cout<<"NO"<<endl; return 0; } flag=1; } } cout<<"Yes"<<endl; } return 0; }

    • @dustin4047
      @dustin4047 Před rokem

      @@modiyadeepashokbhai5466 just a min

    • @dustin4047
      @dustin4047 Před rokem

      @@modiyadeepashokbhai5466 #include <bits/stdc++.h> using namespace std; int main() { int t, n, flag; cin >> t; string s; while (t--) { flag = 0; cin >> n >> s; int flag1 = 0; for (int i = 0; i < n / 2; i++) { if (s[i] == s[n - i - 1]) { if (flag == 1) flag = 2; } else { if (flag == 2) { flag1 = 1; cout << "NO" << endl; break; } flag = 1; } } if (!flag1) cout << "Yes" << endl; } return 0; }

    • @dustin4047
      @dustin4047 Před rokem

      @@modiyadeepashokbhai5466 bhai vo isliye nhi chl rha tha kyuki no ke baad return zero hone pr vo pura return hi ho jaa rha tha or mere code me chl rha tha kyuki mene ek alg function bnaya tha .... ye rha mera solution alg function me codeforces.com/contest/1789/submission/194929538

  • @devanshshrimali2125

    wrong answer dikha raha hai

  • @watchofficial6602
    @watchofficial6602 Před rokem

    Nice.

  • @gauravsharma1251
    @gauravsharma1251 Před rokem

    good 1

  • @asishmanoj
    @asishmanoj Před rokem

    Thankyou bro