Subsets 2 (Leetcode 90) - Medium (Hindi) | Facebook Interview Question

  Рет қаралды 10,759

CodingWithPrakash

CodingWithPrakash

Күн бұрын

Пікірлер: 23
@ksciencebuddy
@ksciencebuddy Жыл бұрын
best series encountered so far without using unneccessary logics - beginner friendly !!
@abhinavkumar7730
@abhinavkumar7730 3 жыл бұрын
I remember I was struggling with the concept, your videos aided me a lot. Cheers....!
@CodingWithPrakash_
@CodingWithPrakash_ 3 жыл бұрын
Wow
@sanjana8267
@sanjana8267 2 жыл бұрын
Sir I have seriously struggled a lot with this stuff, thank you so much!
@zeta_meow_meow
@zeta_meow_meow Жыл бұрын
nice and simple v
@desibhojan8287
@desibhojan8287 6 ай бұрын
Good 👍😊
@DsaTraveller
@DsaTraveller 2 жыл бұрын
great playlist
@niteshgupta1118
@niteshgupta1118 2 жыл бұрын
Finally. Understood this one.
@khushichouksey253
@khushichouksey253 Жыл бұрын
agr if we will continue when 2 comes again then how [1,2,2] will be formed?
@Rajmayank24
@Rajmayank24 2 жыл бұрын
There will be no base case ??
@adarshupadhyay8265
@adarshupadhyay8265 3 жыл бұрын
What will be the time and space complexity of this solution?
@CodingWithPrakash_
@CodingWithPrakash_ 3 жыл бұрын
Watch subset video in this playlist for time and space complexity
@KalpitSharma
@KalpitSharma 2 жыл бұрын
Permutation k videos nahi dikh rhe
@theuntoldtree
@theuntoldtree 3 жыл бұрын
isme set vala trika thoda sa bta dete to sahi rehta
@theuntoldtree
@theuntoldtree 3 жыл бұрын
sir missed one major point , saying sort the array
@mohitkumar557
@mohitkumar557 2 жыл бұрын
if you sort the given array before any operation then the power set will be in the lexicographical order. That's it.
@sudiptodas6272
@sudiptodas6272 2 жыл бұрын
class Solution: def subsetsWithDup(self, nums): index=0 current=[] residual=[] nums.sort() return (self.subset(index,nums,current,residual)) def subset(self,index,nums,current,residual): current.sort() if current not in residual: temp=copy.deepcopy(current) residual.append(temp) for i in range(index,len(nums)): current.append(nums[i]) self.subset(i+1,nums,current,residual) current.pop(len(current)-1) return residual ** the filter logic is little complex to understand simple : sort the array b4 passing : nums.sort() before pushing to residual sort and check check if it is already present : current.sort()
@CodingWithPrakash_
@CodingWithPrakash_ 7 ай бұрын
✅ Useful Links 𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - instagram.com/codingwithprakash/ 𝐖𝐡𝐚𝐭𝐬𝐀𝐩𝐩𝐂𝐡𝐚𝐧𝐧𝐞𝐥 - whatsapp.com/channel/0029VaACtTa4tRrpDCQc5f44 𝐋𝐢𝐧𝐤𝐞𝐝𝐢𝐧 - www.linkedin.com/in/prakash-shukla/
@PROTECHRAHUL
@PROTECHRAHUL 2 жыл бұрын
Bhaiya bina back tracking k nhi ho sakta kya?
@CodingWithPrakash_
@CodingWithPrakash_ 2 жыл бұрын
Ho sakta hai but backtracking is used to optimization You can use brute force too
@sanskartayal7257
@sanskartayal7257 2 жыл бұрын
why it is i>start i cannot understand
@a.yashwanth
@a.yashwanth 2 жыл бұрын
How will u compare something(i) with previous value(i-1) when you are at the starting value(start) where you dont have any previous value(start-1).
@amansayer4943
@amansayer4943 Жыл бұрын
@@a.yashwanth thanks bhai .that could be said by sir but he messed it up .thanks buddy
Same Tree | (Leetcode 100) | Amazon interview question
12:00
CodingWithPrakash
Рет қаралды 958
Subsets II - Backtracking - Leetcode 90 - Python
15:05
NeetCode
Рет қаралды 120 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 17 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 13 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
Subsets (Leetcode 78) - Medium (Hindi) | Backtracking + Iterative solution
36:24
Leetcode 90. Subsets II
13:35
Fraz
Рет қаралды 13 М.
L11. Subset Sum II | Leetcode | Recursion
30:16
take U forward
Рет қаралды 339 М.
Print unique subsets And Variations
24:48
Aditya Verma
Рет қаралды 109 М.
Путин ответил на угрозы Трампа
7:21
Diplomatrutube
Рет қаралды 1,3 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 17 МЛН