3097. Shortest Subarray With OR at Least K II | Sliding Window | 2 Pointers | Bit Manipulation

In this video, I'll talk about how to solve Leetcode 3095. Shortest Subarray With OR at Least K I & 3097. Shortest Subarray With OR at Least K II
Learn 2 Pointers Basics & where to apply - • 930. Binary Subarrays ...
Practice Problem - • 713. Subarray Product ...
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 18

  • @IK-xk7ex
    @IK-xk7ex3 ай бұрын

    I solved it by myself yesterday!

  • @ekanshgupta2930
    @ekanshgupta29303 ай бұрын

    hnoest question how do you think of such approaches while the contest itself even if I was given like 10 days to solve this I wouldn't have thought of an approach like this one

  • @mbm.editzz

    @mbm.editzz

    3 ай бұрын

    mera toh 3rd yr khatam hone ko aya hai abhi bhi nhi hua

  • @priyanshkumariitd
    @priyanshkumariitdАй бұрын

    Thanks, great explanation

  • @shivamgurjar8979
    @shivamgurjar8979Ай бұрын

    brilliant solution

  • @chase.2595
    @chase.25953 ай бұрын

    aryan mittal legend

  • @kafuu1
    @kafuu12 ай бұрын

    you are such a genius! I wish I can be as smart as you one day!

  • @devanshsengar1877
    @devanshsengar18773 ай бұрын

    very helpful bro

  • @tzuilee588
    @tzuilee5883 ай бұрын

    Well explained and nice test case walk-through man! Just a small suggestion: you're adding too much drama in your facial expressions on camera, kind of distractive lol

  • @abishekupadhyay6357
    @abishekupadhyay63573 ай бұрын

    bro many many thanks to you. apne iss week 2 pointer itni ache se explain kiya ki i got this one almost instantly during the contest. You are amazing bhai.

  • @akuma_168

    @akuma_168

    3 ай бұрын

    got stuck in removing OR value from starting pointer. I just suck at bit manipulation.

  • @Anonymous____________A721

    @Anonymous____________A721

    6 күн бұрын

    @abhishek pls share your profile or your solution link I am unable to understand any code

  • @k.satish3663
    @k.satish36633 ай бұрын

    sliding window marathon

  • @chase.2595

    @chase.2595

    3 ай бұрын

    yeah even daily problems are of sw

  • @prakashnandan7337
    @prakashnandan73373 ай бұрын

    Thanks Aryan

  • @mbm.editzz
    @mbm.editzz3 ай бұрын

    BRO ISSE NAHI HOSAKTA KYA #define ll long long #include using namespace std; class Solution { public: int minimumSubarrayLength(vector& nums, int k) { mapmp; int n=nums.size(); ll ans=1e8; for(int i=0;i=k)return 1; ll x=nums[i]; ll count=1; for(int j=i+1;j=k){ ans=min(ans,mp[{i,j}]); } } } if(ans==1e8){ return -1; } return ans; } };

  • @soham6473

    @soham6473

    3 ай бұрын

    nhi

Келесі