Leetcode biweekly contest 134 - Video Editorial | Global Rank - 44

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • Contest Link - leetcode.com/c...
    If you have any queries, you can contact me on LinkedIn, I will definitely try to resolve your query.
    About Me -
    I am Aniket, a third year CS student
    LinkedIn - / aniket-more-5a928822a
    Twitter - / an1ket_more
    Join telegram - t.me/aniketmorecp
    #leetcode #competitiveprogramming #codeforces #programming #datastructures #algorithm #codeforces

КОМЕНТАРІ • 4

  • @SohailKhan-cx9gb
    @SohailKhan-cx9gb 2 місяці тому

    4th one was easy solved using map
    #define ll long long
    class Solution {
    public:
    long long countSubarrays(vector& nums, int k) {
    int n=nums.size();
    mapm1;
    ll cnt=0;
    for(auto v:nums){
    mapm2;
    for(auto [u,f]:m1){
    ll vl=v&u;
    m2[vl]+=f;
    }
    m2[v]++;
    cnt+=m2[k];
    m1=m2;
    }
    return cnt;
    }
    };

  • @mind_blazed
    @mind_blazed 2 місяці тому +1

    How can I reach there like you ? What should I do . I am struggling for 2nd 3rd problem .😢

  • @Rlxn5
    @Rlxn5 2 місяці тому +1

    I want to see you in Candidate master ✨

  • @VEED_Edits
    @VEED_Edits 2 місяці тому

    Great work bro.