3209. Number of Subarrays With AND Value of K | Leetcode Biweekly 134

  Рет қаралды 787

codingMohan

codingMohan

Күн бұрын

Пікірлер: 16
@nabajyotimajumdar4511
@nabajyotimajumdar4511 6 ай бұрын
awesome!
@aryansharma9200
@aryansharma9200 6 ай бұрын
amazing explaination
@bishwashkumarsah171
@bishwashkumarsah171 5 ай бұрын
Maja agaya.
@sanchitkumar6626
@sanchitkumar6626 5 ай бұрын
Bhaiya come with some of greedy problem set
@sudhadevi6692
@sudhadevi6692 6 ай бұрын
Thx 4 the video bhaiya ❤
@AnandKumar-kz3ls
@AnandKumar-kz3ls 6 ай бұрын
thanks mohan
@sanjai_rs7
@sanjai_rs7 6 ай бұрын
Hello Sir, Can you post a couple of videos on how to prove greedy solutions for some good problems or if you already have posted in your channel can you share the link or problem name. I am facing difficulty in Greedy Problems.
@selvaragavan_10
@selvaragavan_10 4 ай бұрын
Bro great please change the color of your cursor. It is not visible when seen from mobile.
@sudhadevi6692
@sudhadevi6692 6 ай бұрын
Bhaiya some has also solve it with sliding window approach also.
@codingmohan
@codingmohan 6 ай бұрын
The only difference is in the last part - instead of using segment trees, you can use prefix sum to compute the bitwise AND.
@sudhadevi6692
@sudhadevi6692 6 ай бұрын
@@codingmohan ok Will try to find that approach to . But ur explanation was gud, I got to know the magic of segment tree 1st time.
@HindiDubbedReels
@HindiDubbedReels 5 ай бұрын
Bro how you came to the conclusion that by using binary search the complexity becomes O(n*logn)?? Because it is now even (n^2+nlogn) Reason:- we need to build the and array for n positions and that will take n^2 time and then binary search on each array we build Please use Hindi language if possible because English me hum Indians kabhi kabhi bolte kuch aur h aur kahna kuch chahte ha
@selvaragavan_10
@selvaragavan_10 4 ай бұрын
To build the AND array it takes only O(N) times. I mean to build a segment tree.
@ucanhly1166
@ucanhly1166 6 ай бұрын
hello can you post video about Construct String with Minimum Cost (4th problem lc weekly 405)
@codingmohan
@codingmohan 6 ай бұрын
Here you go - kzbin.info/www/bejne/ZnbVoXyugJ6Ei6s
@tinkuvishnu795
@tinkuvishnu795 6 ай бұрын
I solved it using precomputation+ bs
3277. Maximum XOR Score Subarray Queries | Weekly Leetcode 413
38:03
3219. Minimum Cost for Cutting Cake II | Weekly Leetcode 406
1:03:26
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
3225. Maximum Score From Grid Operations | Leetcode Biweekly 135
1:04:57
3251. Find the Count of Monotonic Pairs II | Weekly Leetcode 410
33:04
Number of Subarrays with xor K | Brute - Better - Optimal
24:55
take U forward
Рет қаралды 160 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 86 М.
3209. Number of Subarrays With AND Value of K (Leetcode Hard)
26:08
Programming Live with Larry
Рет қаралды 482
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 314 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 769 М.