Product of Array Except Self | 4 Approaches | Detailed Explanation | Leetcode 238 | codestorywithMIK

  Рет қаралды 9,124

codestorywithMIK

codestorywithMIK

Күн бұрын

Пікірлер: 26
@shloksuman8164
@shloksuman8164 7 ай бұрын
mazhar in every 'medium' problem : " Medium marked hai par kaafi Easy hai" 😅😅 really good explanation
@EB-ot8uu
@EB-ot8uu 7 ай бұрын
ha ha. true. Ye Qn marked Medium hai, but hai kaafi easy 😅
@Coder_Buzz07
@Coder_Buzz07 7 ай бұрын
Mik bhaiya big fan thank you for posting videos everyday 😊it helps a lot
@amanjha3346
@amanjha3346 7 ай бұрын
wow i saw the streak which was 383 days and i was wow that's awesome really awesome
@spaul7172
@spaul7172 7 ай бұрын
It takes a lot to inspire. U have my respect 😌
@deependrapushkar2528
@deependrapushkar2528 Ай бұрын
nice explanation !!
@Dezy_Kri
@Dezy_Kri 7 ай бұрын
Nice explanation
@theOmKumar
@theOmKumar 7 ай бұрын
vector productExceptSelf(vector& nums) { int n = nums.size(); vector res(n,1); int prefix = 1, suffix = 1; for(int i = 1; i < n; i++){ prefix *= nums[i-1]; res[i] *= prefix; suffix *= nums[n-i]; res[n-i-1] *= suffix; } return res; }
@tutuimam3381
@tutuimam3381 7 ай бұрын
Amazing explanation ❤❤❤
@kundankumar-zl3qq
@kundankumar-zl3qq 7 ай бұрын
O Bhai osm explanation!
@whothefisyash
@whothefisyash 7 ай бұрын
crisp explanation
@Marcusparker-vu4pr
@Marcusparker-vu4pr 7 ай бұрын
Keya demaj hai bhaiya apka_ medium wala question ko v easy se v easy matlab basic wala question bana diya_. Kuch tips do bhaiya_ kaise bana leto ho Aisha approach
@anmolverma075
@anmolverma075 3 ай бұрын
God level explanation !
@gauravbanerjee2898
@gauravbanerjee2898 7 ай бұрын
Thanks a lot bhaiya ❤❤
@fourthdimension6515
@fourthdimension6515 7 ай бұрын
you are just amazing bhaiya
@aryanZzz..
@aryanZzz.. 7 ай бұрын
Bhaiya plz make video on leetcode 2831,also explain one thing sb logo ne is question me explain nhi kiya jb window ka size reduce kiya hai tb agar maximum frequency wala element out of window jaa rha h tb bhi maxf(count of most frequent element in that window) ko same he rkha h reduce nhi kiya?? bohot confusion hora h isme
@sanketsinghal6178
@sanketsinghal6178 7 ай бұрын
Bhaiya in the last approach again we have used an extra space array? So the actual space complexity should be O(N)
@kushaalrana
@kushaalrana 7 ай бұрын
Yes I have the same doubt
@codestorywithMIK
@codestorywithMIK 7 ай бұрын
In 4th approach, we took result and we calculated the answer in that only. Since this result need to be returned, we can ignore it. In 3rd approach we had to take left and right apart from result array. So it depends, you can consider the space taken by result array or you can ignore the space taken by result array.
@parvahuja7618
@parvahuja7618 4 ай бұрын
mazhar bhai aap humare mazhiyah ho
@oqant0424
@oqant0424 7 ай бұрын
POTD DONE [15.3.24] ✅✅
@aws_handles
@aws_handles 7 ай бұрын
big fan bro
@kushagrapandey8898
@kushagrapandey8898 7 ай бұрын
i tagged you in my tweets please check and guide am i going in write direction or not?
@sanketjagtap9350
@sanketjagtap9350 7 ай бұрын
Approach 2: If the count of 0 is greater than 1, then the whole result array will contain zeros.
@sportsplanetx5832
@sportsplanetx5832 Ай бұрын
i love you. is se xada kia bolu bhai
@dayashankarlakhotia4943
@dayashankarlakhotia4943 7 ай бұрын
public int[]productExceptSelf (int[]nums){ int n=nums.length, int[]ans=new int[n]; int product=1; for(int i=0;i=0;i--){ ans[i]*=product; product*=nums[i]; } return ans; }
Это было очень близко...
00:10
Аришнев
Рет қаралды 2,7 МЛН
ТИПИЧНОЕ ПОВЕДЕНИЕ МАМЫ
00:21
SIDELNIKOVVV
Рет қаралды 1,6 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 110 МЛН
Product of Array Except Self - Leetcode 238 - Python
11:54
NeetCode
Рет қаралды 622 М.
introduction to java class-20
1:48:59
iamthatsoftwareguy
Рет қаралды 16
Product of array except self | Leetcode #238
15:00
Techdose
Рет қаралды 96 М.
CANDY | 2 Approaches | O(1) Space | O(N) Space | AMAZON | Leetcode - 135
39:33
Это было очень близко...
00:10
Аришнев
Рет қаралды 2,7 МЛН